Skip to main content

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. Although it is specifically created for connecting to our test-bed, it should work for any Apache Kafka version too.

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 install the PYPI package run pip3 install python-test-bed-adapter

Using the Github repo

If you clone the Github repository, to run the examples you will need to install the dependencies specified on the file requirements.txt For that, run pip3 install -r requirements.txt from the project folder.

Examples and usage

Check the examples of consumer and producer.

Release files for python-test-bed-adapter 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-test-bed-adapter 0.0.6
File Size Uploaded
python-test-bed-adapter-0.0.6.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-test-bed-adapter 0.0.6
File Interpreter ABI Platform
python_test_bed_adapter-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / python-test-bed-adapter-0.0.6.tar.gz

Download URL python-test-bed-adapter-0.0.6.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
65d5152768f5bd9189fab12b0bba82d05557e3fc0112e6d61a731e9c473434ae
BLAKE2b-256 checksum
How to use checksums
92cfe901053211f489d807f280fb82daa61ddcec0110a1804924be01ff7908cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

Release files / python_test_bed_adapter-0.0.6-py3-none-any.whl

Download URL python_test_bed_adapter-0.0.6-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62d2ef3b3a09e085ed43440e7ea155e05325d96ade3bef364e8fe538f4309864
BLAKE2b-256 checksum
How to use checksums
e7dec1d0544eb6348d1913a218feb4fb2ef0172607fb35269b4aa7be81b0bdca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page