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.7.7.tar.gz (13.7 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.7.7-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.7.7.tar.gz
Algorithm Hash digest
SHA256 e8c770cfa72084fe2634881b27fb251e69d0ee62a4f972228c97d2fb82957952
MD5 119c49a02028776bf05b4a8411354cc1
BLAKE2b-256 0ac20e0d5d332e4477abb880d7413d919fad1410440b15884a0ec9c1f5d98360

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 63af14c1ae844f2e675e7531a2ee465e8babdd9cfa2faa192877c9512f93db3d
MD5 cebba93de19f4bc92ec96b44ac671366
BLAKE2b-256 c308e8e1e992540a93851b18f3c90525ac816d05a5784c33df649b93b59f2ae0

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