📩 Email Profile
Project description
email-profile
Check list
- Query API Structure
- Data table structure
- SQLlite Backup
- 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
print(content.json())
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.2.0.tar.gz
(28.3 kB
view details)
Built Distribution
File details
Details for the file email_profile-0.2.0.tar.gz
.
File metadata
- Download URL: email_profile-0.2.0.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe70d846537dac90ceb34356cefe3886ff330997c0c3ca6e5123cd2cd1b70b7 |
|
MD5 | 7f916b1675f77b02e38147f0940affd5 |
|
BLAKE2b-256 | b97be193312ce96017bb7461e6151aa874a5f3d5567ac64a67e93e34d315a379 |
Provenance
File details
Details for the file email_profile-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: email_profile-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ea4ad21bb97519db51c990bfc73c7adee8bc5e3f526f7ae9ceb8fd75768fc81 |
|
MD5 | fdd028d4c3c9a80e59cc3a2ca5a801a8 |
|
BLAKE2b-256 | a80110a0b631f9c1b7f1edee6ff5373213a80ee95d6dfd739508e2d9370f14c1 |