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
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 osint-python-test-bed-adapter-1.0.4.tar.gz
.
File metadata
- Download URL: osint-python-test-bed-adapter-1.0.4.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39cd776070781e6a6da1f2679ca80d6e5aa5ffd22f370bbfdc894d165bfae99 |
|
MD5 | a61ec9b3263c4398074a63e64f5eceb5 |
|
BLAKE2b-256 | 68c70709aea42ae638781d9656fb5cec06e77dc845ccae68b248bddd5df54d9b |
File details
Details for the file osint_python_test_bed_adapter-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: osint_python_test_bed_adapter-1.0.4-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76946ac69c1ce8cc28b4a130a523ee22912ae1b34e243a22cbe9330ad4c254ac |
|
MD5 | b52e758d6e1a62fc5c0f86b55db33454 |
|
BLAKE2b-256 | 93fd0d43ce2366ff8fa340a3a8bd93a7c7f7230a6ff7fbb84dbed2187ce907c6 |