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
    lists = await matimo.execute('mailchimp-get-lists', {})
    print(lists)

    # Add a subscriber
    await matimo.execute('mailchimp-add-list-member', {
        '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', {
        'list_id': 'abc123def',
        'subject_line': 'April Newsletter',
        'from_name': 'My Company',
        'reply_to': 'hello@example.com',
    })
    await matimo.execute('mailchimp-send-campaign', {
        'campaign_id': campaign['id'],
    })

asyncio.run(main())

Authentication

export MAILCHIMP_API_KEY="your-api-key-us1"     # includes datacenter suffix
export MAILCHIMP_SERVER_PREFIX="us1"             # datacenter prefix from your API key

Getting Mailchimp API Credentials

  1. Log in to MailchimpProfileExtrasAPI keys
  2. Click Create A Key
  3. Copy the API key — the suffix (us1, us6, etc.) is your server prefix

Documentation


Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matimo_mailchimp-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matimo_mailchimp-0.1.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file matimo_mailchimp-0.1.2.tar.gz.

File metadata

  • Download URL: matimo_mailchimp-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_mailchimp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5838a4e926402a3e8a31f0309dec1b1a87b5f0ae73146403f1c4841a7c99df7f
MD5 e9491bf91ac94bb54a1025048826775c
BLAKE2b-256 364cb102d08b1067d8ddde2cf005af6309d8d87bae1b7e5fbba329e969e6472f

See more details on using hashes here.

File details

Details for the file matimo_mailchimp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for matimo_mailchimp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1b48d87b73cdf5a57c0d5cd1aab30d37a0e8afb5ee2ba42ffcf72474f15e71
MD5 7f13ab5f790a47b224d19b5ea6c54710
BLAKE2b-256 38552450986dcc425f2362f4302a54c6f8c446b74e6703b5557a5ac499668420

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 Sentry Error logging StatusPage Status page