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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.7.8.tar.gz
Algorithm Hash digest
SHA256 fc1296906b1a9b8785256b8516ad2b9e8cf398c5f5e2201828471617a865f7fd
MD5 b76f156f104b5c8928a7bf0f1e9326ab
BLAKE2b-256 f4e96db7f4ff92cc51e6e87a2d1a123bfda8140b2946f5ba367cf2ef963c95a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_kafka-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 176ef1984531adb16abc17d383d197355fb652b773b5c41afc2816045e53acee
MD5 2ef987f67f725a993069f7bc63538a58
BLAKE2b-256 af4a187ecb987e9a6a7d05c1072f3273be860494570a00d858fe709265ae7b54

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