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.11.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.11.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.11.0.tar.gz
Algorithm Hash digest
SHA256 a16671667af9eada6c940190ce0d663be5ec099955d59e2a86d80039f41fe3ff
MD5 cd00fba13c7834eddd250496d3d8609d
BLAKE2b-256 fa4cc13407ae0d665d26846d0d1b1da9ad0c0cf1fb3aace19826732c48c0c5f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astrocyte_ingestion_redis-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3529d94a9390e42931eb19aeb586b03cb10068b13b88f8bbe2d1ec9a62fc21d8
MD5 9fa3276650b1b2249a6ba53695816eb3
BLAKE2b-256 dcbeac1e990a90c123944b557a7e380b4c7fdd46e4a13ec7029145c315d8d358

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