redis-json-dict
Usage
>>> import redis
... redis_client = redis.Redis("localhost", 6379)
... d = RedisJSONDict(redis_client, prefix="my_dict")
... d
{}
All user modifications, including mutation of nested lists or dicts, are immediately synchronized to the Redis server.
Design Requirements
- The dictionary implements Python's
collections.abc.MutableMappinginterface. - All values stored in Redis are JSON-encoded, readily inspected with developer eyeballs and possible to operate on from clients in languages other than Python.
- Keys may be prefixed to reduce the likelihood of collisions when one Redis is shared by multiple applications.
- No data is cached locally, so it is impossible to obtain a stale result.
However, the dictionary may be composed with other libraries, such as
cachetools, to implement TTL caching for example. - Top-level items like
d['sample']may be accessed without synchronizing the entire dictionary. Nested objects liked['sample']['color']are supported (but may be less efficient). - Mutating nested items, with operations like
d['sample']['color'] = 'red'ord['sample']['positions'].append(3)triggers synchronization.
Release files for redis-json-dict 0.2.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 | |
|---|---|---|---|
| redis_json_dict-0.2.2.tar.gz | 12.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redis_json_dict-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / redis_json_dict-0.2.2.tar.gz
| Download URL | redis_json_dict-0.2.2.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
659c8ea71c81fae93f1ea328c357f1d1709395565bc8ca7b5410d44b4f271a70
|
|
BLAKE2b-256 checksum How to use checksums |
34e7de8be2bd19cbdb350d21836de2f56741aefc6cbf57478b31719c3e2856c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 13, 2026.
Transparency logRelease files / redis_json_dict-0.2.2-py3-none-any.whl
| Download URL | redis_json_dict-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3654918541ebc0b5f77bf8aa7626217af3325f3f5451d9391c2d8cd35974decd
|
|
BLAKE2b-256 checksum How to use checksums |
13b53515126cb6dce557cb928cc3147a77d5f84b9cade3c8548b802792e6bbe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 13, 2026.
Transparency log