Async Redis Objects
Some object orient wrappers around the redis interface provided by aioredis.
Notes
- Included:
- hash table
- queue (list)
- priority queue (sorted set)
- locks (keys)
- Includes python implementation with matching interface for mocking.
from async_redis_objects.mocks import ObjectClient - tested on pypy and CPython 3.6 to 3.9
- API documentation on read the docs
Example
import aioredis
import asyncio
from async_redis_objects import ObjectClient
async def main():
# Connect with aioredis as normal
redis = aioredis.Redis(await aioredis.pool.create_pool(address='redis://redis:6379', db=3, minsize=5))
# Make an object client object with your redis object
objects = ObjectClient(redis)
# Access a hash table in redis
table = objects.hash('hash-table-key')
await table.set('name', 'Hello World')
# Access a queue
queue = objects.queue('queue-name')
await queue.push(await table.get('name'))
await queue.push(100000)
# Access a priority queue
pq = objects.priority_queue('other-queue-name')
await pq.push({'name': 'same json serializable object'}, priority=100)
await pq.push(await queue.pop(), priority=101)
print(await pq.pop()) # Print Hello World
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Metadata
Release files for async-redis-objects 0.4.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 |
|---|---|---|---|---|
| async_redis_objects-0.4.1.tar.gz | 8.3 kB | Without provenance | Details for async_redis_objects-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_redis_objects-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for async_redis_objects-0.4.1-py3-none-any.whl |
Total release size: 18.6 kB
Release files / async_redis_objects-0.4.1.tar.gz
| Download URL | async_redis_objects-0.4.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c6384d572e87051393a33f6c05366f698db0497faf2b39adf6aaea2c57a267
|
|
BLAKE2b-256 checksum How to use checksums |
49d8bba25bc384ddbf06ce94fda2f0ef10074bb169df82e4af2e5ca75a2fda5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Release files / async_redis_objects-0.4.1-py3-none-any.whl
| Download URL | async_redis_objects-0.4.1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9b5ff8ba8bd917861b85a3b74243569179ed047407a2e4511fc046bf5f82b49
|
|
BLAKE2b-256 checksum How to use checksums |
c5105f86073402fee1d3cc4e9d149b3068e0edeb13b3c722207dfe6841c3fc8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for async-redis-objects 0.4.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.