Skip to main content

Redis Streams IngestSource adapter for Astrocyte

Project description

astrocyte-ingestion-redis

Optional IngestSource implementation: Redis Streams consumer (XREADGROUP / XACK), wired from sources: with type: stream and driver: redis.

Install

pip install astrocyte-ingestion-redis

In this monorepo, astrocyte[stream] includes this package (see astrocyte-py/pyproject.toml; package lives under adapters-ingestion-py/).

The package registers redis under the astrocyte.ingest_stream_drivers entry-point group (same mechanism as storage adapters under astrocyte.vector_stores, etc.). Core resolves sources: with type: stream and driver: redis via that group.

Config sketch

sources:
  events:
    type: stream
    driver: redis
    url: "redis://localhost:6379/0"
    topic: "my-stream"
    consumer_group: "astrocyte"
    target_bank: "ingest"

Message field shapes match astrocyte.ingest.payload.parse_ingest_stream_fields (see core docs).

Develop

cd adapters-ingestion-py/astrocyte-ingestion-redis
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_redis-0.15.0.tar.gz (38.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_redis-0.15.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file astrocyte_ingestion_redis-0.15.0.tar.gz.

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.15.0.tar.gz
Algorithm Hash digest
SHA256 54a8b2388fe57894c1a30b11dedc9b9f6c1a69e5fb7a3304713055c68e4a965a
MD5 b231d7eb649a442bfb4badb415ec9693
BLAKE2b-256 b3a6ccd5383162d0b756a8b3bb45d8fe62ffc6ed27356e281d8c3d2d994f9de2

See more details on using hashes here.

File details

Details for the file astrocyte_ingestion_redis-0.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed3c9508052b3fbc1e2c53554ed42666e1758a85a8b262c8c10de174a4e7e48
MD5 6eeb2af9963d4aaf8978e1121cc99211
BLAKE2b-256 de98b8fa348acd97a002a0ed3a1be6e86b7c4eca1035caa2717dd1ba376063c9

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