pypi.org/project/pyluaredis
socket.dev/pypi/package/pyluaredis
Python version: >= 3.11
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.
Install
pip install pyluaredis
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.
- 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.
_________________________________________________________________________
Is it slower than the original implementation? Yes, it is slower.
But, .lua scripts are cached within a single class object and subsequent function calls will be faster (almost the same time as the original implementation).
You can see comparisons with the original library in the file benchmark/main.py This library is not about the speed of working with Redis, it is about the ease of working with Redis, allowing you to not worry about a lot of different functions of the database and the original library, as well as data types.
______________________________________________________________________________________________
Supported Python types:
- integer
- float
- string
- boolean
- bytes
- 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
Metadata
Release files for pyluaredis 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyluaredis-1.0.9.tar.gz | 30.4 kB | With provenance | Details for pyluaredis-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyluaredis-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for pyluaredis-1.0.9-py3-none-any.whl |
Total release size: 48.4 kB
Release files / pyluaredis-1.0.9.tar.gz
| Download URL | pyluaredis-1.0.9.tar.gz |
|---|---|
| Size | 30.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c1da5650d73b9b9ed8a93c813cbb37ce015c3736366baa72c32527d23bb712f
|
|
BLAKE2b-256 checksum How to use checksums |
bc87dbf5a414b73df027716331fed7a2fe6e2210f5bd272578354b830c4692b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logRelease files / pyluaredis-1.0.9-py3-none-any.whl
| Download URL | pyluaredis-1.0.9-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03aa949a2868783600b9466c29095e7a837e2aa66f8364dcb381841a852caf69
|
|
BLAKE2b-256 checksum How to use checksums |
6bedff73a257aff791e1720316e39d1ae76aae105c819090f34e5a9272f76124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logSecurity for pyluaredis 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyluaredis-1.0.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.