Skip to main content

Python adapter for Kafka

Project description

python-test-bed-adapter

This is the test-bed adapter for Python: it allows you to easily connect Python services to the Apache Kafka test-bed via Python.

The implementation is a wrapper around Pykafka and avro-python3 offering support for:

  • AVRO schema's and messages: both key's and values should have a schema as explained here.
  • Kafka consumer and producer for the test-bed topics.
  • Management
    • Heartbeat (topic: connect-status-heartbeat), so you know which clients are online. Each time the test-bed-adapter is executed, it starts a heartbeat process to notify the its activity to other clients.
    • Configuration (topic: connect-status-configuration), so you can see which topics clients consume and produce.

Installation

You need to install Python 3+.

To run the examples you will need to install the dependencies specified on the filerequirements.txt For that, run pip3 install -r requirements.txt from the project folder.

Examples and usage

  • url_producer: creates a message with 4 URLs to RSS feeds on the topic ('system_rss_urls')
  • rss_producer: listens to url messages ('system_rss_urls') and produces RSS messages ('system_rss_urls')
  • rss_consumer: listens to RSS messages ('system_rss_urls') and prints them to console.

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

osint-python-test-bed-adapter-1.0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file osint-python-test-bed-adapter-1.0.1.tar.gz.

File metadata

  • Download URL: osint-python-test-bed-adapter-1.0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for osint-python-test-bed-adapter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c4df6f2afd179d97ab9548df2f368739c2eb9b7f345b67e4e79c808b4b951b35
MD5 b8298a249c02072e040aa3ed949fb261
BLAKE2b-256 f4a1ba74a9fcb5b2e7cbd2f792995f259ee4f08b59d69f25abe9872c4cebe4e8

See more details on using hashes here.

File details

Details for the file osint_python_test_bed_adapter-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: osint_python_test_bed_adapter-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for osint_python_test_bed_adapter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9da746a769c7644e083ed6b2e2b48f9f7d9bdca6db04ceacf57ec75ec729fbc2
MD5 d5a7998082d0392aa776445ebc1c2d54
BLAKE2b-256 eb93fc23af000c0f8ec3b12d62da2ea663a874a7461c914945e502ac00d8817a

See more details on using hashes here.

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