The Events API supports a Python micro-services infrastructure using RabbitMQ, Event Sourcing & Tuple Space
Project description
eventzAPI
The eventzAPI supports a Python micro services infrastructure. It employs publish and subscribe messaging using AMQP messaging (RabbitMQ) & Event Sourcing. It provides support for Qt,tkinter or wxPython GUIs. A Librarian Client supports querying an indelible event store (Archive).
The API requires that a RabbitMQ server be accessible and if a master archive is needed, an Archivist and Librarian available through Docker Hub.
To use eventzAPI in an application example code follows:
from eventzAPI import ApplicationInitializer . . Class Main(object): def initialize_eventz(self):
subscriptions = [< A list of event record types that the application subscribes to eg. [250001.00", "250002.00"]>]
publications = [< A list of event record types that the application publishes eg. [250011.00", "250022.00"]>]
application_id = < A UUID unique to this application eg.'65aa1c62-0991-48b7-a52c-1140c73582ce'>
application_name = 'Your application name'
user_id = 'Your user name if there is one, otherwise an empty string (Needed for ApplicationInitializer)'
# Instantiate the Application Initializer that will generate the objects needed to access the API's methods
ai = ApplicationInitializer(subscriptions, publications, application_id, application_name, self.settings_path,
user_id)
# Get the objects
self.a_publisher, self.a_subscriber, self.a_logger, self.a_librarian_client, self.eventz_utilities, self.parameters = ai.initialize()
# The initializer generates a session Id (UUID_) which is included in an event record metadata. Useful in separating events messages
# Meant for your instance of the application
self.my_session_id = str(self.parameters.session_id)
# Inform the universe that this application instance has started.
eventz_utilities.start_application(self.a_publisher, user_id)
pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file eventzapi-2.2.6.tar.gz
.
File metadata
- Download URL: eventzapi-2.2.6.tar.gz
- Upload date:
- Size: 56.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206e082a698c25cd4504ab2cf2f8d36bd87ceaf4374cfa43a3167c8272fa040d |
|
MD5 | c2a7fe9c6c7fe6eba48320c5591fd3e5 |
|
BLAKE2b-256 | c083d909a56d6c4ad2db4c59d2acae815f2e2c8b339e90489dd7a2c04847aad0 |
File details
Details for the file eventzAPI-2.2.6-py3-none-any.whl
.
File metadata
- Download URL: eventzAPI-2.2.6-py3-none-any.whl
- Upload date:
- Size: 43.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e835895e1281c16b5e00c67ac8c1b9e629c8db453cb5895f216994bf1ad6909b |
|
MD5 | 36370e9eb762d083c635d8933c7eeb22 |
|
BLAKE2b-256 | 77a9ba0041afc4d8cb965eac02ee5d7790562a5752d57d970ec501f557247805 |