Skip to content

Pluggable client for easy and intuitive work with the Redis database in Python projects

License

Notifications You must be signed in to change notification settings

MothScientist/pylua-redis-fusion

Repository files navigation

Redis Python Lua

Test coverage UnitTests CodeQL Advanced Dependabot Updates

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.

Installing with an external directory

git clone https://github.com/MothScientist/pylua-redis-fusion.git

Install (pip)

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» :)

  1. 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.
  2. 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.
  3. 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.
  4. Pluggable flexible logging with many settings that allow you to customize it "for yourself"
  5. 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

PyRedisImage

About

Pluggable client for easy and intuitive work with the Redis database in Python projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published