Skip to main content

Official Python SDK for the NovaMail API

Project description

NovaMail Python SDK

The official Python library for the NovaMail API. Easily integrate transactional emails into your Python applications.

Installation

You can install the package directly via pip:

pip install novamail

Usage

Create an API key in your NovaMail dashboard and use it to initialize the client.

from novamail import NovaMailClient

# Initialize the client with your API key
client = NovaMailClient(api_key="nm_live_your_api_key_here")

# Send an email
response = client.send_email(
    to="recipient@example.com",
    from_email="sender@your-verified-domain.com",
    subject="Welcome to NovaMail",
    html="<h1>Hello!</h1><p>This is a test email sent from the Python SDK.</p>"
)

print("Email sent successfully!")
print(response)

Advanced Usage

If you need to point the SDK to a different base URL (for example, for local testing), you can pass it to the client:

client = NovaMailClient(
    api_key="nm_test_...",
    base_url="http://localhost:54321/functions/v1"
)

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

novamail-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

novamail-0.1.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file novamail-0.1.2.tar.gz.

File metadata

  • Download URL: novamail-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for novamail-0.1.2.tar.gz
Algorithm Hash digest
SHA256 42e921cc5f8de99a0723300438a6b48a628749ff3bdcb4bc99fcdcb25b2a7daf
MD5 bbd59d9d5d8f2301ff2028154a56ccd6
BLAKE2b-256 c7af00eb014a89252de9cef0c9cb6de51e8b7cea9811c67a1cb35ddf5e33af7b

See more details on using hashes here.

File details

Details for the file novamail-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: novamail-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for novamail-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33fc14ec8c474fe22a6028f3c1d9f7c43fa15b8da197e834e3c397347da681f0
MD5 01baa17a8b4545dc5bc408872c52f63e
BLAKE2b-256 6585b9d8b4a0a26b4a6b19bfa0de3f3bd867a9826fbc9d5d406733786b73795c

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