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 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

redisenv-0.1.2.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

redisenv-0.1.2-py3-none-any.whl (15.1 kB view hashes)

Uploaded Python 3

Supported by

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