Skip to main content

MailGun V3

This package provides fluent API for MailGun API.

build status Documentation Status Code Climate Issue Count

Installation

pip install mailgunv3

Usage

domain = 'example.com'

mg = MailGunV3(domain,
               'key-asdfghjkl',
               'pubkey-asdfghjkl')

res1 = (mg.
        mailinglist('mlA-{}@{}'.format(random.randint(0, 10), domain)).
        create('Test Mailing List').
        delete())
print(repr(res1))

res2 = (mg.
        mailinglist('mlB-{}@{}'.format(random.randint(0, 10), domain)).
        create('Test Mailing List').
        update(
            name='New Name',
            description='New Description').
        get())
print(repr(res2))

res3 = (mg.
        mailinglist('newsletter-dev@' + domain).
        members())
print(repr(res3))

res4 = (mg.
        mailinglist('newsletter-dev@' + domain).
        member('a01-{}@{}'.format(random.randint(0, 1000), domain)).
        create(
            name='Foo Bar',
            params={'a': 1, 'b': 2}).
        get())
print(repr(res4))

res5 = (mg.
        mailinglist('newsletter-dev@' + domain).
        member('a01-{}@{}'.format(random.randint(0, 1000), domain)).
        update(
            name='Foo Bar - EDIT',
            params={'a': 1, 'b': 2}).
        get())
print(repr(res5))

res6 = (mg.
        mailinglist('newsletter-dev@' + domain).
        members())
print(repr(res6))

res7 = (mg.
        mailinglist('newsletter-dev@' + domain).
        member('a01@' + domain).
        delete())
print(repr(res7))

Changelog

0.2

  • Playing with documentation

0.1

  • Initial commit

Metadata

Release files for MailGun-V3 0.3.2

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

Source distribution (sdist)

Source distribution for MailGun-V3 0.3.2
File Size Uploaded Provenance Actions
MailGun-V3-0.3.2.tar.gz 5.3 kB Without provenance Details for MailGun-V3-0.3.2.tar.gz

Release files / MailGun-V3-0.3.2.tar.gz

Download URL MailGun-V3-0.3.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c2fe85b828628e3af737d889a51735554021c13d56b65e6c55d8e6b75b06bbdd
BLAKE2b-256 checksum
How to use checksums
ef64df4f9c17c8f9f140e93fded65ca33a72ddef44c7d48bd82ccfcd78cebad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for MailGun-V3 0.3.2

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.

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file No provenance

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