redisenv
redisenv is library that makes generating redis test environments easier. This tool generates docker-compose files, and runs all instances within docker. Generated docker instances select a random port, based on the available free ports, and when running redisenv ports, a JSON parse-able string of the build connections is outputted.
Currently redisenv supports:
-
Redis standalone
-
Redis Sentinel
-
Redis Clusters
-
Redis masters with replicas
-
Redis Enterprise Clusters
Note: These require ports 8443, 9443, and can pick a random port per database. As a result, these two ports must be free in order to start a cluster. This is a temporary limitation, for now.
Note: Today Redis Standalone supports redis-stack, but nothing else does
Installation
Requirements
-
Python >= 3.7
-
docker-compose
-
docker
pip install redisenv
Usage
List options. Note, each sub command accepts its own --help
redisenv --help
Start an environment named foo, with one container:
redisenv --name foo standalone create --nodes 1
Start an environment with the redisbloom module, downloaded into a folder named modules. Note - you need the full local path to the directory.
redisenv --name foo standalone create -n 1 -M `pwd`/modules /modules -o "--loadmodule /modules/redisbloom.so"
Destroy the environment named foo:
redisenv --name foo destroy
Metadata
Release files for redisenv 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redisenv-0.3.1.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redisenv-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.5 kB
Release files / redisenv-0.3.1.tar.gz
| Download URL | redisenv-0.3.1.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11cccdd010e163fb59edb6eae905d39a21cc4688a562eff9298f3d0c54b959bf
|
|
BLAKE2b-256 checksum How to use checksums |
0c21915197f059bff93bf2415b8d45a081d331480501c3c17d6f3d169637cbe5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.16 Linux/5.15.0-1034-azure
|
Release files / redisenv-0.3.1-py3-none-any.whl
| Download URL | redisenv-0.3.1-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b149e2bb0bc69a45b73d33edf26047d34dc78c93aec8eccda2042e6f7f595ada
|
|
BLAKE2b-256 checksum How to use checksums |
22b293766d6c2194522856ce47f20dc6b654ff5314ff7abe3bd6a4182d9fd725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.16 Linux/5.15.0-1034-azure
|