Skip to main content

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.

Metadata

Release files for email-profile 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email-profile 0.4.0
File Size Uploaded Provenance Actions
email_profile-0.4.0.tar.gz 28.8 kB Without provenance Details for email_profile-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for email-profile 0.4.0
File Interpreter ABI Platform Actions
email_profile-0.4.0-py3-none-any.whl Python 3 none any Details for email_profile-0.4.0-py3-none-any.whl

Total release size: 41.1 kB

Release files / email_profile-0.4.0.tar.gz

Download URL email_profile-0.4.0.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
29a799ee5fea940a5592122b8333abdbbe0a251773b016bb6572bf83d8d86945
BLAKE2b-256 checksum
How to use checksums
773e6eeca2aadc6d1e66c718b7cae3f21bdc4517178be7e9fe23328885758fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / email_profile-0.4.0-py3-none-any.whl

Download URL email_profile-0.4.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f0717224d722d1e1a8fe1d72d4075fa3b41874186e2e07e6b4284357d768b1d
BLAKE2b-256 checksum
How to use checksums
9aa87c618686f46880d810c81d1818422ede30a9ecdd4dc50d9f7e2477bed755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for email-profile 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page