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.10.0.tar.gz (13.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_redis-0.10.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f6002fbba628eb0551a31ce2a1717f11ecf0063e9773a0bda11d29a1a36d2f06
MD5 aa70b1554d446df99689ee123e5f5691
BLAKE2b-256 c69e83f86deefb6ebd6621b6d7ae80abd0dba1b1a96f4ed21e09e7c3786fbb9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cab3f16bfb36d80b102231ded05ca1b73bb3ae2bd66b15a09f97ef130d13ae01
MD5 1fc13cf40aea290815fa4767408c1b30
BLAKE2b-256 e0532c9079a4902d83656912f82c502dfc513d35fcd7507199454ce3f5225ecf

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