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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.10.0.tar.gz
Algorithm Hash digest
SHA256 b0f8d3ad8512a006fa79a0d97cf359217ce46de04f6d2ff22f07555afb6444de
MD5 ebaa32995e82324e91f38685f24494b5
BLAKE2b-256 cae2a56f2bb5abc0911a717fabd5df98ba352c499f2e268c46e85799f500648e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 667196c0de02a9550e140c2b58854ad92d985c1a5355467fbc49f42114e2f575
MD5 d3dceed15205b5fddb0cfcf54394f8b7
BLAKE2b-256 67a576be95132889941d25f0d91f1933f99d803a3a2830c97821cb3e327ffc5a

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