Python version: 3.13 (Support includes Python 3.11 and 3.12)
The library is very limited in functions compared to redis-py, but has a wide functionality if you need a minimal set of commands to work with the database.
git clone https://github.com/MothScientist/pylua-redis-fusion.git
pip install git+https://github.com/MothScientist/pylua-redis-fusion.git
Future updates are described in detail in the roadmap.md file
How does this library differ from redis-py, on which it is built?
For quick connection to your Python projects and easy usage. «Plug and Play» :)
- The methods have a more flexible type system, you can get both a number and a list using one r_get function, without worrying about what exactly is being treated in a given key.
- Scenarios that require 2 or more calls to the Redis service are built on the basis of Lua scripts that perform all operations in 1 call to the server.
- The methods have additional parameters that are not in the standard library, for example, an analogue of RETURNING (like in Postgres), which also allows you not to worry about the type of the variable that lies in a given key.
- Pluggable flexible logging with many settings that allow you to customize it "for yourself"
- It helps in the development of applications following the 12-factor principles.
- It is assumed that you already have the Redis service installed and running.
- There is no need to install Lua as it is built into Redis.
Supported Python types:
- integer
- float
- string
- boolean
- list
- tuple
- set
- frozenset
The number of supported methods and data types increases as the project develops, but it has all the basic methods for working with Redis (see the list and description of current commands with examples in the example.py
file in the root of the repository).
Backward compatibility of functions is also preserved, which allows you to avoid problems when using the library in your projects