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 hashes)
Built Distribution
Close
Hashes for message_db_py-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 885799678536727396fcd04be22bb196ee76aeb5bc37919c8e91de040aa43ef4 |
|
MD5 | 00990c8fe30676f8869cddf4cac48ea8 |
|
BLAKE2b-256 | 89be7f9f15141206c3997a6119e925d89576130d6e8fe0bd8ca1ca6e27842c51 |