The Python interface to the MessageDB Event Store and Message Store
Project description
message-db-py
message-db-py
is a Python interface to the Message DB event store and message
store, designed for easy integration into Python applications.
Installation
Use pip to install:
$ pip install message-db-py
Usage
Here's a quick example of how to publish and read messages using Message-DB-py:
from message_db.client import MessageDB
# Initialize the database connection
mdb = MessageDB("your_connection_string")
# Write a message
mdb.write("your_stream_name", "your_message_type", {"data": "value"})
# Read a message
message = mdb.read_last_message("your_stream_name")
print(message)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
message_db_py-0.1.3.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file message_db_py-0.1.3.tar.gz
.
File metadata
- Download URL: message_db_py-0.1.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178064b8249b35b1edc7a6dd01231f34b341657ec46185b600fc7d064854f3eb |
|
MD5 | b7e5bfc2adfb21bd5a33f8f4a90e2528 |
|
BLAKE2b-256 | 94199066d82a96c4989591ad477ac152a70be7b309cb1f41d41b87cf8c6da130 |
File details
Details for the file message_db_py-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: message_db_py-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 885799678536727396fcd04be22bb196ee76aeb5bc37919c8e91de040aa43ef4 |
|
MD5 | 00990c8fe30676f8869cddf4cac48ea8 |
|
BLAKE2b-256 | 89be7f9f15141206c3997a6119e925d89576130d6e8fe0bd8ca1ca6e27842c51 |