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 python-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.6.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for python_redis_orm-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ce93a45a77b7ad1fececf1bbc94ce5f9df93150c9fd65355b38c8281a37f74 |
|
MD5 | 97bb916061e2a6fd7cd3663954952350 |
|
BLAKE2b-256 | 8d1cd41c7a189580ac0e2e840d1772ebaf26a1b2eceb4a38f6718d2d114fb784 |