Skip to main content

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+
  • protobuf
  • grpcio-tools (for compiling protos, if needed)

Installation

  1. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # Linux/Mac
    venv\Scripts\activate     # Windows
    
  2. Install dependencies:

    pip install protobuf
    

Usage

  1. Edit example.py with your EnOS Subscription credentials (HOST, PORT, ACCESS_KEY, SECRET, SUB_ID).
  2. Run the example:
    python example.py
    
    The script will print received messages (Topic, Partition, Offset, Key, Value) to the console.

Project Structure

  • client.py: The main SubClient class.
  • 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enos_dms-0.0.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for enos_dms-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c1ef5fc51506d3315caf795215e8775af7302853d9a840ec22922dc981b31c3c
MD5 6a30e92b2aa5ac9e2a0cbe7a7ae75e9e
BLAKE2b-256 97e8b733774920b9d81c85ae72260fd9fc96865a978f65318b6e0e6608976394

See more details on using hashes here.

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

Hashes for enos_dms-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3ad0f0dfe22f72766a4c2e92d40bc49168c8da6736f09ffa4bd620776e2f64
MD5 026668e41e1a00b392c9e86d57c8353b
BLAKE2b-256 689e9bce656ae12bc6144c17ee7a1d7b43949ff807052e1143a66c51c88b0296

See more details on using hashes here.

Supported by

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