pyApp - Redis
Let us handle the boring stuff!
This extension provides a Redis client factory to allow configuration to be configured via pyApp settings.
The extension also provides checks to confirm the settings are correct and that the application is able to connect to the redis instance.
It is strongly recommended to install the hiredis companion package to improve the performance of the redis client.
Installation
Install using pip:
pip install pyapp-redis
Install using pipenv:
pipenv install pyapp-redis
Add the REDIS block into your runtime settings file:
REDIS = {
"default": {
"url": "redis://user:pass@host:port/1",
},
}
Usage
The following example creates a Redis client instance:
from pyapp_ext.redis import get_client
# Get connection
redis = get_client()
redis.set("foo")
API
pyapp_ext.redis.get_client(default: str = None) -> Redis
Get named Redis client instance
Metadata
Release files for pyApp-Redis 1.0
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 |
|---|---|---|---|---|
| pyApp-Redis-1.0.tar.gz | 3.0 kB | Without provenance | Details for pyApp-Redis-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyApp_Redis-1.0-py3-none-any.whl | Python 3 | none | any | Details for pyApp_Redis-1.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / pyApp-Redis-1.0.tar.gz
| Download URL | pyApp-Redis-1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53b5b0563325827cbe04bf4578ad13aa4720ad3e878fd6eb05cd8471620589cd
|
|
BLAKE2b-256 checksum How to use checksums |
59bdd50b2897bcadd2397c734f30624f48cee76457e3b4db18af6340405589b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
|
Release files / pyApp_Redis-1.0-py3-none-any.whl
| Download URL | pyApp_Redis-1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2eef32806b82de40d61c08bb99df5a0ec2fc08c2520663652f2176241d137bf6
|
|
BLAKE2b-256 checksum How to use checksums |
5c9bd627c7c60a4e1204e69d4c8e348b857dbd9444c7725fd8e72969869016d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
|
Security for pyApp-Redis 1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.