Skip to main content

A tool for building redis test environments

Project description

redisenv

MIT licensed pypi CI

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

Note: Today Redis Standalone supports redis-stack, but nothing else does


Installation

Requirements

  • Python >= 3.7

  • docker-compose

  • docker

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

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

redisenv-0.1.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redisenv-0.1.3-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file redisenv-0.1.3.tar.gz.

File metadata

  • Download URL: redisenv-0.1.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for redisenv-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dd81d04274cdc88f034aa564c312ad196a5d4367abcdefecb37149669defb49a
MD5 be4d8769b9faffd8ae1078d521e2084c
BLAKE2b-256 b431ccc6ecb3afd8c777491b50e00fa1eeb60dd47cbc07c88964f9f3344d6366

See more details on using hashes here.

File details

Details for the file redisenv-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: redisenv-0.1.3-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.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for redisenv-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 090803d2dc55ff825b4b81d0e6c91b359310936b30ae3f4561f4e1239c8ed7d7
MD5 02a223bccbab1dae679adfd45a9b58f2
BLAKE2b-256 e733e57b0002994d354af95e4a420ae097dc22d5ed3175b947db62225ca726bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page