Metadata-Version: 2.1
Name: python-redis-orm
Version: 0.1.0
Summary: Python Redis ORM, turns redis to a fully functional in-memory database, inspired by Django ORM
Home-page: https://github.com/gh0st-work/python_redis_orm
License: MIT
Keywords: python,redis,ORM,django,database
Author: Anton Nechaev
Author-email: antonnechaev990@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: redis (>=3.5.3,<4.0.0)
Project-URL: Repository, https://github.com/gh0st-work/python_redis_orm
Description-Content-Type: text/markdown

# 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`

[Here is PyPi](https://pypi.org/project/redis-orm/)


# Usage

