Skip to main content

Kafka IngestSource adapter for Astrocyte

Project description

astrocyte-ingestion-kafka

Optional IngestSource implementation: Kafka consumer (AIOKafkaConsumer), wired from sources: with type: stream and driver: kafka.

Install

pip install astrocyte-ingestion-kafka

In this monorepo, astrocyte[stream] includes this package (see astrocyte-py/pyproject.toml; package lives under adapters-ingestion-py/).

The package registers kafka under the astrocyte.ingest_stream_drivers entry-point group.

Config sketch

sources:
  events:
    type: stream
    driver: kafka
    url: "localhost:9092"
    topic: "my-topic"
    consumer_group: "astrocyte"
    target_bank: "ingest"

Message values use astrocyte.ingest.payload.parse_ingest_kafka_value (see core docs).

Develop

cd adapters-ingestion-py/astrocyte-ingestion-kafka
uv sync --extra dev
uv run pytest

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

astrocyte_ingestion_kafka-0.14.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

astrocyte_ingestion_kafka-0.14.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file astrocyte_ingestion_kafka-0.14.1.tar.gz.

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.14.1.tar.gz
Algorithm Hash digest
SHA256 bcb5a922d8fa1d7ef722c93a7eacdca02ce4b12e2bb0a78374b0050dd8ab21e1
MD5 88fe4027c43bcf5c801461a94e138cff
BLAKE2b-256 edc5ffdeae2e3ba80f1bbd7e7789d5567a52da5ecbf81eaed26fcc2b1940487f

See more details on using hashes here.

File details

Details for the file astrocyte_ingestion_kafka-0.14.1-py3-none-any.whl.

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ace93905c4fc73c223775f26fffb08625dae0caa927e9ec0c9c67b43a8e7bfb5
MD5 6ba66859dc5cc4dbf74de71bfb4f8c04
BLAKE2b-256 b1551b01a0f2d66e2d42076f0cc5c52476ecc58e7465204d1d470bd66057ab07

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