asyncredis
An asyncio compatible Redis driver. Just a pet-project.
Information
asyncredis is, like I've said above, just a pet-project for me. I really just wanted to experiment with database protocols, and try to write my first database driver!
asyncredis internally connects with asyncio, allowing for asynchronous socket states. It also supports retrying connections. Please DO NOT use this in production. I recommend aioredis for production usage.
Internals
Internally, asyncredis uses hiredis to parse messages that are received from the Redis server. hiredis ensures speedy parsing, thanks to being C based.
Examples
If you do decide to test out this driver for yourself, I'll leave some examples below.
import asyncio
import asyncredis
async def main():
rds = await asyncredis.connect("redis://localhost:6379")
await rds.set("hello", "world")
value = await rds.get("hello")
exists = await rds.exists("hello")
seralized = await rds.dump("hello")
await rds.delete("hello")
print(value)
print(exists)
print(seralized)
await rds.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
>>> world
>>> True
>>> b'\x00\x05world\t\x00\xc9#mH\x84/\x11s'
Metadata
Release files for asyncredis 0.3.0
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 |
|---|---|---|---|---|
| asyncredis-0.3.0.tar.gz | 5.7 kB | Without provenance | Details for asyncredis-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asyncredis-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for asyncredis-0.3.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / asyncredis-0.3.0.tar.gz
| Download URL | asyncredis-0.3.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ab0e48681a8f18ba08c07b6bc2ae4b41bc5ceab7b42d6510d6c6664af6f3bf0
|
|
BLAKE2b-256 checksum How to use checksums |
f809cf97d7566a1491a0c26e856f86ed4c3e50e6d762c38be3174d97701b0968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
|
Release files / asyncredis-0.3.0-py3-none-any.whl
| Download URL | asyncredis-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81c44ba6ba6cb905137376b04b950acb2f9e2efab04d12078fffa95050529f71
|
|
BLAKE2b-256 checksum How to use checksums |
dbebe3e9e0d0ef20f3c25e6bf624c4bd6b5c7a9a98aec89388ad54767480e83f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
|
Security for asyncredis 0.3.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.