Skip to main content

Kafka connector plugin for onestep.

Project description

onestep-kafka

Kafka connector plugin for onestep.

pip install onestep-kafka

The package registers these YAML resource types through the onestep.resources entry point:

  • kafka
  • kafka_topic

Python usage:

from onestep_kafka import KafkaConnector

YAML usage:

resources:
  kafka_main:
    type: kafka
    bootstrap_servers: "${KAFKA_BOOTSTRAP_SERVERS}"

  orders:
    type: kafka_topic
    connector: kafka_main
    topic: orders.events
    group_id: onestep-orders
    batch_size: 100
    poll_timeout_ms: 1000

Delivery semantics

The plugin disables Kafka auto commit and follows onestep's at-least-once contract. Offsets are committed only after processing reaches ack() or a terminal fail().

If a worker sends output to a sink and exits before the Kafka offset commit succeeds, downstream output can be duplicated. Handlers and downstream sinks should be idempotent when duplicates matter.

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

onestep_kafka-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

onestep_kafka-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file onestep_kafka-0.1.0.tar.gz.

File metadata

  • Download URL: onestep_kafka-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onestep_kafka-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bac96ec5c4d9b08f4b5d1087b8239a8d5f5e3afbb677fd918175a0964655676b
MD5 0fb04b708e0439da0c0ddb8c86c818fa
BLAKE2b-256 0506555f729a0e7d5d6d8cf69714176856d84cd94e7cfaa9ecdde9d38a15333b

See more details on using hashes here.

File details

Details for the file onestep_kafka-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: onestep_kafka-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onestep_kafka-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12f96aa3653060c74648291c1f6ab009fceb484bbd7f9b8eaf48c86e22336224
MD5 8d29e23a3ea959c3961ef6b8c34b36ee
BLAKE2b-256 03fedffc918ec66cc79d78bc8718327b9d590a1a7bfa089a4b23c47e50b86cc3

See more details on using hashes here.

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