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.7.7.tar.gz (15.8 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.7.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.7.7.tar.gz
Algorithm Hash digest
SHA256 692cecc9a21c42ba815a78a66ebbe4f3311a45264adbefbcc34f7b3b758c3d8c
MD5 5886f280bb71da6fa15572b54205e981
BLAKE2b-256 f6070434cb4bed4469747c290920f61d79b37cd90d1f45edd3ce4a8793d59ad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b411ce29c5feb2c5e9213ac191c0bb46918294e378b059469565a29d47852fe4
MD5 e8edd303a9edf2846ab3a2cdd6006efb
BLAKE2b-256 ee39bce4aab8e251689d82b0e1e351da8ebbafa704e026dd1efb19f2365b31bb

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