Data subscription with DMS package
Project description
EnOS Subscription Python Client
This is a Python implementation of the EnOS Subscription Client, tested with Python 3.14.0
Prerequisites
- Python 3.6+
protobufgrpcio-tools(for compiling protos, if needed)
Installation
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
-
Install dependencies:
pip install protobuf
Usage
- Edit
example.pywith your EnOS Subscription credentials (HOST,PORT,ACCESS_KEY,SECRET,SUB_ID). - Run the example:
python example.pyThe script will print received messages (Topic, Partition, Offset, Key, Value) to the console.
Project Structure
client.py: The mainSubClientclass.utils.py: Utility functions (signature calculation).proto/: Protocol Buffer definitions.generated/: Compiled Protocol Buffer classes.example.py: Example usage script.
Notes
- The client uses a TCP connection to communicate with the EnOS Subscription Server.
- It handles Authentication, Subscription, and Pulling messages automatically.
- Offsets are auto-committed periodically (default 3 seconds).
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
enos_dms-0.0.1.tar.gz
(9.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
enos_dms-0.0.1-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file enos_dms-0.0.1.tar.gz.
File metadata
- Download URL: enos_dms-0.0.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1ef5fc51506d3315caf795215e8775af7302853d9a840ec22922dc981b31c3c
|
|
| MD5 |
6a30e92b2aa5ac9e2a0cbe7a7ae75e9e
|
|
| BLAKE2b-256 |
97e8b733774920b9d81c85ae72260fd9fc96865a978f65318b6e0e6608976394
|
File details
Details for the file enos_dms-0.0.1-py3-none-any.whl.
File metadata
- Download URL: enos_dms-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b3ad0f0dfe22f72766a4c2e92d40bc49168c8da6736f09ffa4bd620776e2f64
|
|
| MD5 |
026668e41e1a00b392c9e86d57c8353b
|
|
| BLAKE2b-256 |
689e9bce656ae12bc6144c17ee7a1d7b43949ff807052e1143a66c51c88b0296
|