Redis support for eric-sse
Installation
pip install eric-redis-queues
Usage
from eric_sse.prefabs import SSEChannel
from eric_redis_queues import RedisConnection
from eric_redis_queues.repository import redis_channel_repository_builder
redis_connection = RedisConnection(host='127.0.0.1', port=6379, db=0)
# Channels, connections, listeners and queues persisted in Redis; messages kept in Redis lists
repository = redis_channel_repository_builder(SSEChannel, redis_connection).build()
The returned builder is an eric-sse ChannelRepositoryBuilder, so it can be further configured (listeners, error
handlers) before build().
Migrating from 2.x
RedisConnectionRepository,RedisSSEChannelRepository,RedisListenerRepositoryand the connection factories are replaced byredis_channel_repository_builder.BlockingRedisQueueandRedisSSEChannelBlockingQueuesRepositoryare removed: in eric-sse 3 waiting is up to the caller, e.g.await channel.wait_next(connection_id, timeout). See the changelog for why, and how to get the same behaviour.RedisStorage(redis_connection, prefix): arguments swapped, andprefixhas a default.- Keys layout changed: data persisted by 2.x is not readable by 3.x.
Tests
Integration tests run eric-sse contracts against a real Redis. Only eric-redis-queues:* keys are deleted.
REDIS_HOST=127.0.0.1 REDIS_PORT=6379 REDIS_DB=15 python -m pytest tests
Tests are skipped if Redis is not reachable.
Related packages
- https://pypi.org/project/eric-sse/ Base project
Documentation: https://laxertu.github.io/eric-redis-queues/
Metadata
Release files for eric-redis-queues 3.1.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 |
|---|---|---|---|---|
| eric_redis_queues-3.1.1.tar.gz | 5.1 kB | Without provenance | Details for eric_redis_queues-3.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eric_redis_queues-3.1.1-py3-none-any.whl | Python 3 | none | any | Details for eric_redis_queues-3.1.1-py3-none-any.whl |
Total release size: 11.3 kB
Release files / eric_redis_queues-3.1.1.tar.gz
| Download URL | eric_redis_queues-3.1.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c33ba3bf67bf52bf62866b6883afe156a33ae1fbe2aa92791dde8b59a9648b80
|
|
BLAKE2b-256 checksum How to use checksums |
2923054c6acf831d269d7c241d40c8003bd30deaba5233223641c5ee483a1629
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-149-generic
|
Release files / eric_redis_queues-3.1.1-py3-none-any.whl
| Download URL | eric_redis_queues-3.1.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
804b8a2db6f24a0e49863637464ebcf2c9dd58473fe9078d84534de751c22fbb
|
|
BLAKE2b-256 checksum How to use checksums |
4fe74164cd321492b3e49dc43c50712a490511fbfb3aafd7aefc6b630abff58c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-149-generic
|
Security for eric-redis-queues 3.1.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.
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.