Skip to main content

Oredis is a library for storing objects in Redis, a persistent key-value database. It includes an extensible list of validations and has very good performance.

How to use

from oredis.models import Model from oredis.manager import Manager from oredis.fields import String, PrimaryKey, StringPK, Integer, DateTime

class NoteManager(Manager):

pass

class NoteModel(Model):

id = PrimaryKey() title = String() pk_hash = StringPK() body = String(required = True)

objects = NoteManager(connection = redis.Redis())

In [19]: note1 = NoteModel(title = “Hello world!”,

….: body=”I am currently engaged in teaching my brother to program. He is a total beginner, but very smart. (And he actually wants to learn). I’ve noticed that some of our sessions have gotten bogged down in minor details, and I don’t feel I’ve been very organized. (But the answers to this post have helped a lot.)”)

In [20]: note1 Out[20]: <NoteModel: 942>

In [21]: note1.title Out[21]: ‘Hello world!’

In [22]: note1.title

INSTALLATION

To use oredis use pip or easy_install:

pip install oredis

or

easy_install oredis

CONTRIBUTE

Fork https://github.com/lispython/oredis/ , create commit and pull request.

Credits

Thanks Alexander Solovyov for some concepts are taken from orem library.

Metadata

Release files for oredis 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oredis 0.1
File Size Uploaded Provenance
oredis-0.1.tar.gz 9.0 kB Without provenance Details

Release files / oredis-0.1.tar.gz

Download URL oredis-0.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f9f770ee5063de80be597db679017ac8a966a80999e9f6565120beef45b1390
BLAKE2b-256 checksum
How to use checksums
d5cd1b8a0a36da3f0aa75db01df33d6c2eadc9f4bab7675a3b5e829a6f296c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for oredis 0.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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page