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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for osint-python-test-bed-adapter-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9b14f9c16f8124d8d19b967eebaf68b1b20d7ac5da1ed267d74a58d168c2b2e9
MD5 cb704f510cb1fca34deae42a14bd01ec
BLAKE2b-256 f0593c0652114af09d7f1d5d2579aefe6ba588d3de1534bf30d564e3beb27da3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for osint_python_test_bed_adapter-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aec18c78f731e0ad2694e2c77922616778f0fda2ff25e0a83b1e595c77b13ead
MD5 035d3498a15d209f5c29af13a7614daa
BLAKE2b-256 6d777fda71790b2499cd81af0688c485a744835997f9ce43826998a5c82da517

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