Skip to main content

Official Python client library for the MailFlurry ESP platform

Project description

mailflurry-python

Official Python client library for the MailFlurry outbound deliverability and transactional ESP platform.

Installation

Install using pip:

pip install mailflurry

Getting Started

Initialize the client with your live developer API key (which must start with sk_live_):

from mailflurry import MailFlurry

client = MailFlurry(
    api_key="sk_live_your_api_key_here",
    base_url="https://mailflurry.com" # Optional: defaults to mailflurry.com
)

Resource Usage

1. Managing Sending Domains

Register a new domain to retrieve DKIM/SPF DNS targets, and verify it:

# Register domain
domain = client.domains.create(
    workspace_id="workspace_id_123",
    domain_name="mycompany.com"
)
print("TXT Host:", domain["dkimRecordName"])
print("TXT Value:", domain["dkimRecordValue"])

# Verify domain once DNS updates
verification = client.domains.verify(domain["id"])
print("Verified Status:", verification["dkimVerified"])

2. Sending & Managing Campaigns

# Create bulk or targeted dispatch campaign
campaign = client.campaigns.create(
    workspace_id="workspace_id_123",
    name="Monthly Tech Updates",
    subject="What is new in MTA architectures",
    content="<h1>Hello Developers</h1><p>Our Redis priorities queues are faster...</p>",
    sender_email="newsletter@mycompany.com",
    recipients=["engineer@client.com", "team@partner.io"]
)
print("Campaign Queued ID:", campaign["id"])

# Retrieve real-time stats
details = client.campaigns.details("workspace_id_123", campaign["id"])
print("Opens Count:", details["opensCount"])
print("Clicks Count:", details["clicksCount"])

License

MIT

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

mailflurry-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailflurry-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mailflurry-1.0.0.tar.gz.

File metadata

  • Download URL: mailflurry-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mailflurry-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc70004a960c9ded1008280801033ac750b55bb012b3aa6076928e682ba6d8e0
MD5 ce523f5ecc9c573589bdda94913e29fc
BLAKE2b-256 6fa7bec3942d4b4f340de2b039773bf42979e67bd7c19ac8ec8472990395e449

See more details on using hashes here.

File details

Details for the file mailflurry-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mailflurry-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mailflurry-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cc0991e2a0d78deed5d52cb28781a5721c5ad9808fb8b89b2e5a4243f7b0a42
MD5 506ffab5a8193ef7bbaaeb6fdd876650
BLAKE2b-256 356a12b1bf90cb77db6af8644beb2ba461595c46bf364e254582109c9241358a

See more details on using hashes here.

Supported by

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