📩 Email Profile
Project description
email-profile
Check list
- Query API Structure
- Data table structure
- Response JSON
- Dump JSON
- Dump HTML
- Response HTML
- CLI Email
- Documentation
How to install?
pip install email-profile
Config
from email_profile import Email
def main():
app = Email(
server="EMAIL-SERVER"
user="EMAIL_USERNAME",
password="EMAIL_PASSWORD"
)
Query instance
from datetime import datetime, date
query = app.select(mailbox="Inbox").where(
since=datetime(1996, 5, 31),
before=date.today(),
subject='abc'
)
Query count
print(query.count())
List IDs
ids = query.list_id()
print(ids)
List Data
data = query.list_data()
for content in data:
# Email data model
print(content.email.subject)
# Attachments data model
print(content.attachments)
# Dump Json
json = content.json()
print(json)
# Dump HMTL
html = content.html()
print(html)
Commit Style
- ⚙️ FEATURE
- 📝 PEP8
- 📌 ISSUE
- 🪲 BUG
- 📘 DOCS
- 📦 PyPI
- ❤️️ TEST
- ⬆️ CI/CD
- ⚠️ SECURITY
License
This project is licensed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
email_profile-0.3.0.tar.gz
(28.3 kB
view hashes)
Built Distribution
Close
Hashes for email_profile-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912647ecda7df64bf6d78be41e2f72fc2b4bdd787d50b93c965502d4cc77f1f6 |
|
MD5 | 2643a4912fd0cb5123f267d6f36aee9b |
|
BLAKE2b-256 | f024c8952cf95255413184822659c11818d8dab929db487e8cded5d9880c8178 |