Skip to main content

messagebirds

Python client SDK for MessageBirds, an open-source, event-driven Customer Data & Engagement Platform.

Mirrors sdk/js exactly in scope: MessageBirdsClient covers the core send-an-event / read-a-profile loop (the same three methods the TS client exposes), not one method per API endpoint. Everything else — audiences, governance, channels, templates, journeys — is typed in messagebirds.types for use with your own requests calls against the REST API, the same role apiFetch<T> plays against the TS types for ui/.

Install

pip install messagebirds

Usage

from messagebirds import MessageBirdsClient, EventEnvelope

client = MessageBirdsClient("http://localhost:8080")

envelope: EventEnvelope = {
    "event_id": "...",
    "event_type": "commerce.product_view",
    "timestamp": "2026-09-18T00:00:00Z",
    "source": {"type": "web", "name": "website"},
    "identity": [{"namespace": "anonymous_id", "value": "anon-1", "primary": True, "source": "sdk"}],
    "schema": {"name": "commerce.product_view", "version": "1.0"},
    "data": {"product_id": "p1"},
    "context": {"profile_updates": {"core/person@1.0": {"first_name": "Jane"}}},
    "tenant_id": "...",
}

client.send_event(envelope)
profile = client.find_profile_by_identity("<tenant_id>", "anonymous_id", "anon-1")

Development

pip install -e ".[dev]"
pytest

License

Apache-2.0. See LICENSE.

Metadata

Release files for messagebirds 0.6.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 messagebirds 0.6.0
File Size Uploaded Provenance Actions
messagebirds-0.6.0.tar.gz 9.4 kB Without provenance Details for messagebirds-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for messagebirds 0.6.0
File Interpreter ABI Platform Actions
messagebirds-0.6.0-py3-none-any.whl Python 3 none any Details for messagebirds-0.6.0-py3-none-any.whl

Total release size: 20.3 kB

Release files / messagebirds-0.6.0.tar.gz

Download URL messagebirds-0.6.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e91924dc0234ebcafad3e38941c9e6e1e17f4f4bd5e8f9df907786dd631b083b
BLAKE2b-256 checksum
How to use checksums
71b24d21d46a8d126b64d23ff5d5f758274e1f8596d6b3bcfd5a8b6aa12e2e96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / messagebirds-0.6.0-py3-none-any.whl

Download URL messagebirds-0.6.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dfbfcc0290df2bae5c907d8060be24eed1aebc11e57de7fbe458b86b2d63c1f
BLAKE2b-256 checksum
How to use checksums
1c0575c008036d667bc4f374fa99dc4e30f73ca102fba4ef1c1d647bc1838e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for messagebirds 0.6.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