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.
Release files for messagebirds 0.1.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 | |
|---|---|---|---|
| messagebirds-0.1.0.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| messagebirds-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / messagebirds-0.1.0.tar.gz
| Download URL | messagebirds-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f66cd802d0c38ab80ec393347f995503e26094a8d5c9ed40d55ecb507525216
|
|
BLAKE2b-256 checksum How to use checksums |
1e8e2daa321564bcfa783d7b7c4e05380e72d5c23f32633529f8ab7b1e632e6a
|
| 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.1.0-py3-none-any.whl
| Download URL | messagebirds-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc9cd1d1b3b9b8c1a95d0144f2c7b666f5622bac6decb24927244b024f73fee7
|
|
BLAKE2b-256 checksum How to use checksums |
05dcce34433653504fbfcc2c01607a82a52efd7181f17a97c3899a6a565049b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|