Skip to main content

Python adapter for Kafka

Project description

naas-python-kafka

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

The implementation is a wrapper around Confluent-kafka-python

  • 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: system-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.

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-2.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for osint-python-test-bed-adapter-2.1.1.tar.gz
Algorithm Hash digest
SHA256 7d8210868ad471878d3bab92b9e045ec619c09838985bfa1b7a9faab40f86523
MD5 77d9b55378a64c769772c4b22177f6a2
BLAKE2b-256 dd8d942f40f81359f8b7440da7752a1f307b4a1a924bebbc3e2dbfe2a80cf02b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for osint_python_test_bed_adapter-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e658f5888c34a072a60c6d8e9589a2e8876ebe8b8a8ff847b5c9317f5da8307
MD5 ec468675da65fdbece5aa857941668b4
BLAKE2b-256 9b2acf24a08bb886c97257a3597d7cb6b5575d01e7a7a8d5f7563b41f8488e29

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