Skip to main content

Yet another Mailup Python client

Project description

💌 Yet another MailUp Python client

Latest Version codecov Build Status License: MIT

Contributing

Any help is welcome, as long as you don’t break the continuous integration. Fork the repository and open a Pull Request directly on the master branch. A maintainer will review and integrate your changes.

Maintainers:

Contributors:

Install

pip install mailupy

How to use

Import Mailupy and instantiate the client

from mailupy import Mailupy

client = Mailupy(
    'm00000',
    'm@1lUPf4k3',
    '8123dbff-d12c-4e3d-a55e-23a8c5a303f8',
    '16cadddf-a145-45db-9347-a5ab51ac223d'
)

Examples

Getting information about fields, groups…

for field in client.get_fields():
    print (field)
for group in client.get_groups_from_list(1):
    print (group)

Getting recipients from lists using Ordering and Filtering (Mailup Documentation)

for group in client.get_groups_from_list(
        1, filter_by='Name.Contains(\'Farm\')',
        order_by=['Name asc', 'idGroup desc']):
    print (group)
for recipient in client.get_subscribed_recipients_from_list(
        1, filter_by='Email.Contains(\'zzz\')',
        order_by=['Email desc']):
    print (recipient['Email'])

Getting a subscribed recipient from a list

client.get_subscribed_recipient_from_list(1, 'andrea.stagi@lotrek.it')

Subscribe/Unsubscribe recipient to/from lists

recipient_id = client.subscribe_to_list(
  1, 'Andrea Stagi', 'stagi.andrea@gmail.com', pending=False
)

client.unsubscribe_from_list(1, recipient_id)

Run tests

pip install -r requirements-dev.txt
make test

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

mailupy-1.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distributions

mailupy-1.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

mailupy-1.1.1-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mailupy-1.1.1.tar.gz.

File metadata

  • Download URL: mailupy-1.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mailupy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4d8caa14078eeccfd3c885c462b115d2fefdccc30b86ddd432a4c48ae45ad093
MD5 f2e77a5ece57a302c85dcd83f8266547
BLAKE2b-256 12f6d30bf861dd547b5fc201fe91b22a96f1aaaba96957caccd2d8f165ff4e5a

See more details on using hashes here.

File details

Details for the file mailupy-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: mailupy-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mailupy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcbd7d9b3165b0fa2284d0191f0abbbdce71d52e9e582af68b2907148efd4be3
MD5 80a5dd4640a72e408c6e99d3f245cc44
BLAKE2b-256 b144bf4fbada4b20c4eaf44b06c6bfb067d22d63262c5d86690a28db7c77cdd2

See more details on using hashes here.

File details

Details for the file mailupy-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mailupy-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mailupy-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1107e55bf3e94f218bf88ba4d10263aa8eb2e6c9eaa94920ebc94a6df8773429
MD5 dcb212903e27420159f423546873ce7a
BLAKE2b-256 dfe61bc28f85c15bd98e411b02fc2734b31f8ee46e4b731d42c5e5479c6564b9

See more details on using hashes here.

Supported by

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