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.13.1.tar.gz (15.9 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.13.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.13.1.tar.gz
Algorithm Hash digest
SHA256 dd8ccc45247a439416ffd8544b0985394587246436000e2adf48276f8d98dcae
MD5 f23ea5348456503498eedb2735d57a6b
BLAKE2b-256 aea7be08040da58f967d0526178b5d8585c238128af6b5f11e119311d1ce816b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5da4e51cd6087bfcdecdaa7405c0ab3655862bfd3539444468ae7b9f05650e0
MD5 e0f8f517474c7d0781a700b4b5d605af
BLAKE2b-256 74724da9ce1457380de531c0ffa5fc9db1e41710173d5b64343f930fb1141115

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