Skip to main content

📩 Email Profile

Project description

email-profile

GitHub Org's stars



Check list

  • Query API Structure
    • Mailbox
    • Since
    • Before
    • Subject
    • From Who
    • Body
    • Unseen
  • Data table structure
  • Get emails
  • Download Attachments
  • Response JSON
  • Dump File JSON
  • Response HTML
  • Dump File HTML
  • Response Attachment File
  • Dump Attachment File
  • 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.4.0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

email_profile-0.4.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file email_profile-0.4.0.tar.gz.

File metadata

  • Download URL: email_profile-0.4.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for email_profile-0.4.0.tar.gz
Algorithm Hash digest
SHA256 29a799ee5fea940a5592122b8333abdbbe0a251773b016bb6572bf83d8d86945
MD5 26fdce016af827efdcf16459f34573e6
BLAKE2b-256 773e6eeca2aadc6d1e66c718b7cae3f21bdc4517178be7e9fe23328885758fa6

See more details on using hashes here.

Provenance

File details

Details for the file email_profile-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for email_profile-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f0717224d722d1e1a8fe1d72d4075fa3b41874186e2e07e6b4284357d768b1d
MD5 ec15cd7bcec17ddab604b557a89270f7
BLAKE2b-256 9aa87c618686f46880d810c81d1818422ede30a9ecdd4dc50d9f7e2477bed755

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page