rob
Persistent python objects with Redis backend.
pip install rob
JsonObject
An object that does a JSON dump of the dictionary and save it in a Redis hash.
Needs to define HASH_KEY - the key to the hash.
HashObject
An object that saves its dictionary in a Redis hash. Using the HMSET. It uses a list to keep track of saved objects.
Needs to define HASH_KEY - a key that is used as prefix to the list and as the key to the hash.
Mixins
The mixins below will work with all the object types.
Autosave mixin
A mixin that calls save every time an attribute is set.
Examples
Simple object
from redis import Redis
class ExampleObject(JsonObject):
HASH_KEY = 'exampleobject'
redis = Redis()
Autosave object
from redis import Redis
class ExampleAutosaveObject(JsonObject, AutosaveMixin):
HASH_KEY = 'exampleobject'
redis = Redis()
Metadata
Release files for rob 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 | |
|---|---|---|---|---|
| rob-0.3.0.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rob-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / rob-0.3.0.tar.gz
| Download URL | rob-0.3.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c298083b1713ec39e6b549eb7d261c01751bf880f5f3dfb219daf34391244aae
|
|
BLAKE2b-256 checksum How to use checksums |
2c99284d52dabcafeece4f723239944889af875ea0c0e781d583a989abb9b492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rob-0.3.0-py3-none-any.whl
| Download URL | rob-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2c62617b6ef9dd557bd0a3b6813a5e3f7cece643766e5199363a9618e94093f
|
|
BLAKE2b-256 checksum How to use checksums |
7c8c665b6aea04d2ae1ed0b5a08d2cfb0599be0bb3bd6e81f64e3352814b644e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rob 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.