Compare commits
1 Commits
main
...
53868e7fc7
| Author | SHA1 | Date | |
|---|---|---|---|
| 53868e7fc7 |
@@ -1,29 +1,29 @@
|
||||
home: index.md
|
||||
home: mail_intake/index.md
|
||||
groups:
|
||||
Core API:
|
||||
- ingestion/index.md
|
||||
- ingestion/reader.md
|
||||
- mail_intake/ingestion/index.md
|
||||
- mail_intake/ingestion/reader.md
|
||||
Domain Models:
|
||||
- models/index.md
|
||||
- models/message.md
|
||||
- models/thread.md
|
||||
- mail_intake/models/index.md
|
||||
- mail_intake/models/message.md
|
||||
- mail_intake/models/thread.md
|
||||
Provider Adapters:
|
||||
- adapters/index.md
|
||||
- adapters/base.md
|
||||
- adapters/gmail.md
|
||||
- mail_intake/adapters/index.md
|
||||
- mail_intake/adapters/base.md
|
||||
- mail_intake/adapters/gmail.md
|
||||
Authentication & Storage:
|
||||
- auth/index.md
|
||||
- auth/base.md
|
||||
- auth/google.md
|
||||
- credentials/index.md
|
||||
- credentials/store.md
|
||||
- credentials/pickle.md
|
||||
- credentials/redis.md
|
||||
- mail_intake/auth/index.md
|
||||
- mail_intake/auth/base.md
|
||||
- mail_intake/auth/google.md
|
||||
- mail_intake/credentials/index.md
|
||||
- mail_intake/credentials/store.md
|
||||
- mail_intake/credentials/pickle.md
|
||||
- mail_intake/credentials/redis.md
|
||||
Normalization & Parsing:
|
||||
- parsers/index.md
|
||||
- parsers/body.md
|
||||
- parsers/headers.md
|
||||
- parsers/subject.md
|
||||
- mail_intake/parsers/index.md
|
||||
- mail_intake/parsers/body.md
|
||||
- mail_intake/parsers/headers.md
|
||||
- mail_intake/parsers/subject.md
|
||||
Configuration & Errors:
|
||||
- config.md
|
||||
- exceptions.md
|
||||
- mail_intake/config.md
|
||||
- mail_intake/exceptions.md
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# mail_intake
|
||||
# Mail Intake
|
||||
|
||||
::: mail_intake
|
||||
@@ -1,22 +0,0 @@
|
||||
from mail_intake.ingestion import MailIntakeReader
|
||||
from mail_intake.adapters import MailIntakeGmailAdapter
|
||||
from mail_intake.auth import MailIntakeGoogleAuth
|
||||
from mail_intake.credentials.pickle import PickleCredentialStore
|
||||
|
||||
store = PickleCredentialStore(path="token.pickle")
|
||||
|
||||
auth = MailIntakeGoogleAuth(
|
||||
credentials_path="credentials.json",
|
||||
store=store,
|
||||
scopes=["https://www.googleapis.com/auth/gmail.readonly"],
|
||||
)
|
||||
auth.get_credentials()
|
||||
|
||||
adapter = MailIntakeGmailAdapter(auth_provider=auth)
|
||||
reader = MailIntakeReader(adapter)
|
||||
|
||||
for message in reader.iter_messages("from:roshnisingh009@gmail.com"):
|
||||
print(message.subject, message.from_email)
|
||||
break
|
||||
|
||||
from pdb import set_trace;set_trace()
|
||||
50
mkdocs.yml
50
mkdocs.yml
@@ -1,3 +1,6 @@
|
||||
site_name: Aetoskia Mail Intake
|
||||
site_description: Format-agnostic document reading, parsing, and scraping framework
|
||||
|
||||
theme:
|
||||
name: material
|
||||
palette:
|
||||
@@ -14,6 +17,7 @@ theme:
|
||||
- navigation.instant
|
||||
- content.code.copy
|
||||
- content.code.annotate
|
||||
|
||||
plugins:
|
||||
- search
|
||||
- mkdocstrings:
|
||||
@@ -31,33 +35,33 @@ plugins:
|
||||
annotations_path: brief
|
||||
show_root_heading: true
|
||||
group_by_category: true
|
||||
site_name: mail_intake
|
||||
|
||||
nav:
|
||||
- Home: index.md
|
||||
- Home: mail_intake/index.md
|
||||
- Core API:
|
||||
- ingestion/index.md
|
||||
- ingestion/reader.md
|
||||
- mail_intake/ingestion/index.md
|
||||
- mail_intake/ingestion/reader.md
|
||||
- Domain Models:
|
||||
- models/index.md
|
||||
- models/message.md
|
||||
- models/thread.md
|
||||
- mail_intake/models/index.md
|
||||
- mail_intake/models/message.md
|
||||
- mail_intake/models/thread.md
|
||||
- Provider Adapters:
|
||||
- adapters/index.md
|
||||
- adapters/base.md
|
||||
- adapters/gmail.md
|
||||
- mail_intake/adapters/index.md
|
||||
- mail_intake/adapters/base.md
|
||||
- mail_intake/adapters/gmail.md
|
||||
- Authentication & Storage:
|
||||
- auth/index.md
|
||||
- auth/base.md
|
||||
- auth/google.md
|
||||
- credentials/index.md
|
||||
- credentials/store.md
|
||||
- credentials/pickle.md
|
||||
- credentials/redis.md
|
||||
- mail_intake/auth/index.md
|
||||
- mail_intake/auth/base.md
|
||||
- mail_intake/auth/google.md
|
||||
- mail_intake/credentials/index.md
|
||||
- mail_intake/credentials/store.md
|
||||
- mail_intake/credentials/pickle.md
|
||||
- mail_intake/credentials/redis.md
|
||||
- Normalization & Parsing:
|
||||
- parsers/index.md
|
||||
- parsers/body.md
|
||||
- parsers/headers.md
|
||||
- parsers/subject.md
|
||||
- mail_intake/parsers/index.md
|
||||
- mail_intake/parsers/body.md
|
||||
- mail_intake/parsers/headers.md
|
||||
- mail_intake/parsers/subject.md
|
||||
- Configuration & Errors:
|
||||
- config.md
|
||||
- exceptions.md
|
||||
- mail_intake/config.md
|
||||
- mail_intake/exceptions.md
|
||||
|
||||
Reference in New Issue
Block a user