tinyredis
Experimental minimalist API for redis
pip install tinyredis
Sample
import redis
from tinyredis import TinyRedis
from dataclasses import dataclass
@dataclass
class Todo: id:int; title:str; done:bool=False
todos = TinyRedis(redis.from_url(YOUR_URL), Todo)
todo = todos.insert(Todo(1, "Create README example"))
# or: todo = todos.insert(title="Create README example")
# if you don't pass `id`, a uuid4 id will be created for you
print(todos()) # Prints all todos
todo.done = True
todos.update(todo)
print(todos[todo.id])
todos.delete(todo.id)
Metadata
Release files for tinyredis 0.0.2
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 |
|---|---|---|---|---|
| tinyredis-0.0.2.tar.gz | 7.2 kB | Without provenance | Details for tinyredis-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tinyredis-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for tinyredis-0.0.2-py3-none-any.whl |
Total release size: 17.5 kB
Release files / tinyredis-0.0.2.tar.gz
| Download URL | tinyredis-0.0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4e2ac545e8a8b4302d02daca7283e2d1f9a645e957d94272d4c9418366f8e97
|
|
BLAKE2b-256 checksum How to use checksums |
d2d8bc664b459aa8b1df75c00c91733bb7c5e1b49f6b6dc4b309035febd30039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / tinyredis-0.0.2-py3-none-any.whl
| Download URL | tinyredis-0.0.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a16a7eaea28c615e4313503d345175ec5174b222aa2123b4db876a45f2cfd16
|
|
BLAKE2b-256 checksum How to use checksums |
404491fadb81c2bf5ddf63bcd05f07b3e2b9abe46667cd906460d6aa6c869071
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for tinyredis 0.0.2
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.