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.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for message_db_py-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9038020414d91c487fa54614f51921723de1865e70b4c1a260e8e31fda83a064 |
|
MD5 | 520fa63302a6125efd76551dc301cf36 |
|
BLAKE2b-256 | 4784c46ffe0c1a15154cb968787861544c6371a3862478c389d5f213159176f4 |