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.2.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.2.0
File Size Uploaded Provenance Actions
matimo_mailchimp-0.2.0.tar.gz 8.0 kB Without provenance Details for matimo_mailchimp-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.5 kB

Release files / matimo_mailchimp-0.2.0.tar.gz

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

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

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

Security for matimo-mailchimp 0.2.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