Python Redis ORM, turns redis to a fully functional in-memory database, inspired by Django ORM
Project description
redis-orm
Python Redis ORM, turns redis to a fully functional in-memory database, inspired by Django ORM
For one project, I needed to work with redis, but redis-py provides a minimum level of work with redis. I didn't find any Django-like ORM for redis, so I wrote this library, then there will be a port to Django.
Working with this library, you are expected:
- Fully works in 2021
- Django-like architecture
- Easy adaptation to your needs
- Adequate informational messages and error messages
- Built-in RedisModel class
- 6 built-in types of fields:
- RedisField - base class for nesting
- RedisString - string
- RedisNumber - int or float
- RedisId - instances IDs
- RedisDatetime - for work with date and time, via python datetime
- RedisForeignKey - for links to other redis models
- All fields supports:
- Automatically serialization and deserialization
- TTL (Time To Live)
- Default values
- Providing functions to default values
- Allow null values setting
- Choices
- Extras:
- Ignore deserialization errors setting - do not raise errors, while deserealizing data
- Save consistency setting - show structure-first data
Installation
pip install redis-orm
Usage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-redis-orm-0.1.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for python_redis_orm-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229f68821769da6999d3ada4444583b85b68e9ae8ed7a04be3f139bc787a93cc |
|
MD5 | ebea0201893d8f70d96e5d77ca220740 |
|
BLAKE2b-256 | 25976feb803bce1d314134600afff5d08e9967e3e724ed23283c1173a4565b66 |