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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| messagebirds-0.7.0.tar.gz | 9.4 kB | Without provenance | Details for messagebirds-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| messagebirds-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for messagebirds-0.7.0-py3-none-any.whl |
Total release size: 20.3 kB
Release files / messagebirds-0.7.0.tar.gz
| Download URL | messagebirds-0.7.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f79d8fb3568ceccb499a70dfa136422c87e0670ce4fe617aae89af88df70ebbd
|
|
BLAKE2b-256 checksum How to use checksums |
1fe931a518e7090d59aff722069301db269093922427dec6655c12fae756a206
|
| 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.7.0-py3-none-any.whl
| Download URL | messagebirds-0.7.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfb55caa3665c993a7a1e0c18cc50bb0e9e9c4e2411bb6dca17f3414e3be9854
|
|
BLAKE2b-256 checksum How to use checksums |
b041fd5526800ddd3ed85f8ba708fd26723574eda2f7ec9bf4dfe28399a35446
|
| 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.7.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.