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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.14.0.tar.gz
Algorithm Hash digest
SHA256 e2811699d1bb7cd1d3ebebbc1989db1309b93d40c63baab61d8597111ed8fb66
MD5 3fd36cac7ef631840d6e6e44d00899ee
BLAKE2b-256 56674e2925d8fc9e741c20469b0cd2e6e74e47abab04856d712e4be4aec1e064

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 389a8c7eea40fd507a324053519c2752453ee030dc496ac06574dff8504d5ee1
MD5 4873d1d6ea940d3b449090e2e01765ae
BLAKE2b-256 dc6a1bce59eef1bbee4f382b5b10605c8229ef1a3a8de9907f3dd7d0c4092649

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