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 details)
Built Distribution
File details
Details for the file message_db_py-0.1.4.tar.gz
.
File metadata
- Download URL: message_db_py-0.1.4.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 | ce096a093b12ef72bb54e4f70b7f683a1f76eb7bf332e53acfd5184387969732 |
|
MD5 | 4ac84f55d348e739316cedb76bc705c1 |
|
BLAKE2b-256 | 73db06de09407349b30195eadc0437c1b74882b55edf4d8e9a5d88aeb926b062 |
File details
Details for the file message_db_py-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: message_db_py-0.1.4-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 | 9038020414d91c487fa54614f51921723de1865e70b4c1a260e8e31fda83a064 |
|
MD5 | 520fa63302a6125efd76551dc301cf36 |
|
BLAKE2b-256 | 4784c46ffe0c1a15154cb968787861544c6371a3862478c389d5f213159176f4 |