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.0b9.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

pypz_kafka_io-0.9.0b9-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pypz-kafka-io-0.9.0b9.tar.gz.

File metadata

  • Download URL: pypz-kafka-io-0.9.0b9.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pypz-kafka-io-0.9.0b9.tar.gz
Algorithm Hash digest
SHA256 e901a4248fb382ba92a3e0a17710ea102c182c4b365556b25b5465132a262933
MD5 280eaac6fc9469997879b03b5c58e029
BLAKE2b-256 7b6a292b51bb7dfa4a607adb20c4b3d65bb805b8a7a9fc3a4942454ad100b2ca

See more details on using hashes here.

Provenance

File details

Details for the file pypz_kafka_io-0.9.0b9-py3-none-any.whl.

File metadata

File hashes

Hashes for pypz_kafka_io-0.9.0b9-py3-none-any.whl
Algorithm Hash digest
SHA256 0409c1139d208b8e38ec7006e5c82662ba88ac91b73600873ea650fe4f909c84
MD5 1c15bd6fc6c0134dd5983a301dc5142e
BLAKE2b-256 f4b7e48a190f13ebd5d86b2e7bb7cd3d8d5819484b577189fc76dc13022418c2

See more details on using hashes here.

Provenance

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