muscles-data-redis
Redis adapter package for muscles-data.
This package is intentionally separate from muscles-data: the core package
owns typed ports, resource runtime and diagnostics, while this package owns
Redis-backed KeyValuePort, LockPort and StreamPort implementations.
Related packages
- Core runtime and port contracts:
muscles-data - Elasticsearch search adapter:
muscles-data-elasticsearch - OpenSearch search adapter:
muscles-data-opensearch - Qdrant vector adapter:
muscles-data-qdrant - MongoDB document-store adapter:
muscles-data-mongodb - S3 object-store adapter:
muscles-data-s3 - SQLAlchemy direct SQL resource adapter:
muscles-data-sqlalchemy - Executable example:
example_data_redis_1
Usage
Register this adapter once in the application composition root when building
the shared DataAdapterCatalog, alongside other configured adapters:
catalog.register(RedisDataFactory())
The cache.redis resource itself is declared in the application's central
data.resources configuration shown below. A package resolves the port from
the existing runtime; it does not build another catalog or DataRuntime:
from muscles.data.ports import KeyValuePort
cache = app.resource.connect("cache.redis", KeyValuePort)
Resource config stays in the project:
data:
resources:
cache.redis:
type: redis
url_env: REDIS_URL
namespace: app
timeout: 3
stream_group: workers
consumer: index-worker
The adapter creates the Redis client lazily by key-value, lock, stream, explicit
native access or data.doctor operations. Application code should use
KeyValuePort, LockPort and StreamPort; direct client access is only an
advanced escape hatch with native_client: true.
Streams use XADD, XREADGROUP and XACK. The configured consumer group is
created on first read and messages use the versioned
muscles.data.message.v1 envelope. Retry and dead-letter decisions stay with
the application worker.
See muscular-example/example_data_redis_1 for an executable example.
Metadata
Release files for muscles-data-redis 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| muscles_data_redis-0.2.1.tar.gz | 12.1 kB | With provenance | Details for muscles_data_redis-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| muscles_data_redis-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for muscles_data_redis-0.2.1-py3-none-any.whl |
Total release size: 20.5 kB
Release files / muscles_data_redis-0.2.1.tar.gz
| Download URL | muscles_data_redis-0.2.1.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95487f5637257a540a294d764e73bd2fcc89e6272b9c8aa1c93032d7da42d515
|
|
BLAKE2b-256 checksum How to use checksums |
92b95dfb7a75f4630851bd7fc7d105e7829e7df0994e4ddd2813a396a9e1cf20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / muscles_data_redis-0.2.1-py3-none-any.whl
| Download URL | muscles_data_redis-0.2.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65ee1e55ac7fbf45a88a205742a0717550a30e3c61adf72c59b85db06291aaad
|
|
BLAKE2b-256 checksum How to use checksums |
4adeae7f9187240e412e9c55aa07f38d760c43d5b3650c160bf19a100550c387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for muscles-data-redis 0.2.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for muscles_data_redis-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA 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.