Skip to main content

Provides a Kafka implementation of the ChannelInput/OutputPort in pypz.

Project description

Description

This package contains the Kafka implementation of the Input-/OutputPortPlugin interface of pypz. It enables the operators to send and receive data records in a real streaming fashion.

Check the documentation for more details.

Install

The python artifact is hosted on https://pypi.org/, so you can install it via pip:

pip install pypz-kafka-io

If you want to work on it locally, then you should install in editable mode:

pip install -e ./plugins/kafka_io

Test

You can run tests against an existing Kafka cluster, however, it is more convenient and safe to use a local test cluster.

  1. Run the confluent image to start a local cluster
docker run --name kafka-test-cluster -d --rm -p 9092:9092 confluentinc/confluent-local
  1. Install the subproject in editable more.
pip install -e ./plugins/kafka_io
  1. To run the tests locally, you need to execute the following command:
python -m unittest discover .\plugins\kafka_io\test\ -p "*.py"
  1. Delete cluster
docker stop kafka-test-cluster

Known issues

Due to the fact that the test execution is sometimes faster than the Kafka cluster, there might be failed tests. Although there are already several delays inserted into the test code, it still can happen. Try to rerun the test and give a notification to the maintainer(s). Thank you.

Build

Before you build, you will need to install the "build" package:

pip install build

Then from the subproject's root, you will need to execute the following command:

python -m build

It will create the source distribution and the wheel file in the "dist" folder.

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

pypz_kafka_io-0.9.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypz_kafka_io-0.9.4-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pypz_kafka_io-0.9.4.tar.gz.

File metadata

  • Download URL: pypz_kafka_io-0.9.4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypz_kafka_io-0.9.4.tar.gz
Algorithm Hash digest
SHA256 4368606a839f0c13ed4ddbbe525f5f7c1ed675ba78f8b7a0f14e8d6c5631a9be
MD5 0874d80ce21e2854929685bc09bc1868
BLAKE2b-256 f8b59cf9eed5193d0fe9fba43bc86a3e5288bacd245bf16c55051d4099b4c871

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypz_kafka_io-0.9.4.tar.gz:

Publisher: publish_plugin_kafka_io.yml on lazlowa/pypz-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypz_kafka_io-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: pypz_kafka_io-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypz_kafka_io-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54e96093cbea84ec7b239e5eb13c96a04b0a4b42a8ece27d0d9eaf7c6f4f5b67
MD5 cd2e77e83ff5ee0b4d97eb09515d6c74
BLAKE2b-256 919efb0ba71956efac925647c7ccef722672eb4dd70ab42f1a8714c9471b5e64

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypz_kafka_io-0.9.4-py3-none-any.whl:

Publisher: publish_plugin_kafka_io.yml on lazlowa/pypz-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page