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.0.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.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novamail-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8d515b13261aa14763a0a052ebcc723287149f9d0e229d48fb8d3724abad1f8c
MD5 19fd5b7a775ef556c1871d5521798db8
BLAKE2b-256 007e9d48af9d7a63fb1d5171a51d1a56cc96218519368818bef7b1fe5cd0eb8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novamail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ae27fdd13f82a49dacfda0cbe1d36d006f053095ae7d2d0344c497f3021b4b2
MD5 42616628c69a5734506965b712e646a4
BLAKE2b-256 daf8ddd6d690b41a8743e4573569eac19401db95af81ad66a4b6b4567d6779fa

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