Skip to main content

fastmesh-redis

Redis Streams adapter for FastMesh — RedisSource and RedisSink via redis-py async.

Install

pip install fastmesh-redis

Usage

from fastmesh import Bus
from fastmesh_redis import RedisSource, RedisSink

source = RedisSource(
    stream="orders",
    group="pipeline",
    consumer="worker-1",
    url="redis://localhost:6379",
)

sink = RedisSink(
    stream="processed-orders",
    url="redis://localhost:6379",
    maxlen=10_000,
)

await Bus().source(source).sink(sink).run()

RedisSource

Consumes from a Redis Stream using XREADGROUP. Each entry → one Message.

Parameter Default Description
stream (required) Stream key name
group (required) Consumer group name (created if missing)
consumer "fastmesh" Consumer name
url "redis://localhost:6379" Redis URL
block_ms 1000 XREADGROUP block timeout (ms)
batch_size 10 Max entries per read
pending_on_start True Re-process unacknowledged entries on start

Entries are auto-acknowledged (XACK) after yielding. The payload is read from the "payload" field (JSON-decoded) or merged from all fields if absent.

RedisSink

Publishes to a Redis Stream using XADD.

Parameter Default Description
stream (required) Stream key name
url "redis://localhost:6379" Redis URL
maxlen None Approximate stream max length
extra_fields_fn None (Message) -> dict[str, str] extra entry fields

The Redis connection is lazily initialized and reused. Call await sink.stop() on shutdown.

Requirements

  • Python 3.11+
  • fastmesh >= 0.2
  • redis[asyncio] >= 5.0 (redis-py with async support)

Metadata

Release files for fastmesh-redis 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastmesh-redis 0.1.0
File Size Uploaded Provenance Actions
fastmesh_redis-0.1.0.tar.gz 5.3 kB Without provenance Details for fastmesh_redis-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastmesh-redis 0.1.0
File Interpreter ABI Platform Actions
fastmesh_redis-0.1.0-py3-none-any.whl Python 3 none any Details for fastmesh_redis-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / fastmesh_redis-0.1.0.tar.gz

Download URL fastmesh_redis-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
32d1734333a40ac0d86333f8a9546c949545ce30756d3f17fb14f81717595f79
BLAKE2b-256 checksum
How to use checksums
1b7bb75d86c81abac701b85a5c3c4fa56898084e1c9afd678672c08e1b69c62a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / fastmesh_redis-0.1.0-py3-none-any.whl

Download URL fastmesh_redis-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9288776f4980dbb25c5cc2f69af3044261f3aa244d1492c5f75ac1c19ca2a352
BLAKE2b-256 checksum
How to use checksums
be73d6e9af60fbb548ca70a73d1d30825ca65bfb34781a656a92d349cfd0121d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for fastmesh-redis 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page