A tool for building redis test environments
Project description
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 parseable string of the build connections is outputted.
Currently redisenv supports:
-
Redis standalone
-
Redis Sentinel
-
Redis Clusters
-
Redis masters with replicas
Installation
Requirements
-
Python >= 3.7
-
docker-compose
-
docker
Usage
List options. Note, each subcommand 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redisenv-0.1.2.tar.gz.
File metadata
- Download URL: redisenv-0.1.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.17.15-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f8bf09e3f91ceabe75bcee949f249340fba6942452f54323769b1480acd9e2d
|
|
| MD5 |
8c84039868a2d9508b0dfbe5aa1d4938
|
|
| BLAKE2b-256 |
0dfd5c75e5f696709db7a51977d7a6948ebdcd93018178e5017ba3dee0879b45
|
File details
Details for the file redisenv-0.1.2-py3-none-any.whl.
File metadata
- Download URL: redisenv-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.17.15-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed99690cf1e9d96cb1d0c5d7490ea6069c3c0a01bb1f117bb3f5c858eeecfa7d
|
|
| MD5 |
5f30de6652b8f87d9c800b4b6c6c14ab
|
|
| BLAKE2b-256 |
7923e30dbc6a39688ae5b3307d8b99dcdd2b782712d7cedc72448628c22e294c
|