Skip to main content

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.

Build Status Code Coverage Python Version PyPI version License

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)

Uploaded Source

Built Distribution

message_db_py-0.1.3-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page