Skip to main content

matimo-mailchimp

Mailchimp tools for Matimo - manage campaigns, lists, and subscribers.

PyPI Docs


Installation

pip install matimo matimo-mailchimp

Available Tools (7 Total)

Tool Description
mailchimp-get-lists List all audiences (lists) in your account
mailchimp-get-list-members Get subscribers in an audience
mailchimp-add-list-member Subscribe an email address to an audience
mailchimp-update-list-member Update subscriber tags, status, or merge fields
mailchimp-remove-list-member Unsubscribe or archive a list member
mailchimp-create-campaign Create a new email campaign
mailchimp-send-campaign Send a campaign to its audience

Quick Start

import asyncio
import os
from matimo import Matimo
from matimo_mailchimp import get_tools_path

async def main():
    matimo = await Matimo.init(get_tools_path())

    # List all audiences (server_prefix is required on every call)
    lists = await matimo.execute('mailchimp-get-lists', {
        'server_prefix': 'us1',
    })
    print(lists)

    # Add a subscriber
    await matimo.execute('mailchimp-add-list-member', {
        'server_prefix': 'us1',
        'list_id': 'abc123def',
        'email_address': 'new@example.com',
        'status': 'subscribed',
        'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Doe'},
    })

    # Create and send a campaign
    campaign = await matimo.execute('mailchimp-create-campaign', {
        'server_prefix': 'us1',
        'list_id': 'abc123def',
        'subject_line': 'April Newsletter',
        'from_name': 'My Company',
        'reply_to': 'hello@example.com',
    })
    await matimo.execute('mailchimp-send-campaign', {
        'server_prefix': 'us1',
        'campaign_id': campaign['id'],
    })

asyncio.run(main())

Authentication

export MAILCHIMP_API_KEY="your-api-key-us1"     # includes datacenter suffix

Every tool also requires a server_prefix parameter (e.g. 'us1') passed directly in the call - it is not read from an environment variable.

Getting Mailchimp API Credentials

  1. Log in to Mailchimp → Profile → Extras → API keys
  2. Click Create A Key
  3. Copy the API key - the suffix (us1, us6, etc.) is your server prefix, used as the server_prefix parameter

Documentation


Metadata

Release files for matimo-mailchimp 0.4.0

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

Source distribution (sdist)

Source distribution for matimo-mailchimp 0.4.0
File Size Uploaded Provenance Actions
matimo_mailchimp-0.4.0.tar.gz 8.0 kB Without provenance Details for matimo_mailchimp-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matimo-mailchimp 0.4.0
File Interpreter ABI Platform Actions
matimo_mailchimp-0.4.0-py3-none-any.whl Python 3 none any Details for matimo_mailchimp-0.4.0-py3-none-any.whl

Total release size: 22.5 kB

Release files / matimo_mailchimp-0.4.0.tar.gz

Download URL matimo_mailchimp-0.4.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b17fb6c16985866633d13b0a656d640cf9647b827d244140d9d0e3f17a51b14d
BLAKE2b-256 checksum
How to use checksums
c9f0910023729142805854f1466cfa563685a44ebb42b080310468513bd5a358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / matimo_mailchimp-0.4.0-py3-none-any.whl

Download URL matimo_mailchimp-0.4.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c097926acf8e22c58a40598fa2b3cc0de8d5fe8fc014a3a2abe979a27fab709
BLAKE2b-256 checksum
How to use checksums
10d78a6e15f22663cc57ccc90311fc5577ad3345b8c63c301833b1cd46b6e667
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for matimo-mailchimp 0.4.0

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.

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