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.8.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.8.0
File Size Uploaded Provenance Actions
messagebirds-0.8.0.tar.gz 9.4 kB Without provenance Details for messagebirds-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / messagebirds-0.8.0.tar.gz

Download URL messagebirds-0.8.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af5a249b21b662692da2d0d46eb5752df08b4e8d4938539932dcfc1b1b9f1332
BLAKE2b-256 checksum
How to use checksums
67a10a0b768a4fc41534a9803a7aa795d879fe43ad51f1418c85080b1e51856c
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.8.0-py3-none-any.whl

Download URL messagebirds-0.8.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b13dd5529cff70c7f355dc4010dcc2b0d6b6b11e6825441b4fc31d4cd807bb0c
BLAKE2b-256 checksum
How to use checksums
125f4710391ad006c9b8d67fda3c2ef52890a3a75dea4f0775d85d941be190f4
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.8.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