Skip to main content

A tool for building redis test environments

Project description

redisenv

MIT licensed pypi

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

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.2.0.tar.gz (11.2 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.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: redisenv-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 2d9df615074cf3ddc593f065f553c187f8441f01b9e3cc1f7785b3b46d60967c
MD5 68898bf783938f98134b1df3fec60555
BLAKE2b-256 34ff7c7f686d0b600f6cd98eecf0a13e20f543c51a3336701b1d6627b8dbcece

See more details on using hashes here.

File details

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

File metadata

  • Download URL: redisenv-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f278555047024f15c890ee36b5ab82a5fbe6bcc2211d08c7e2ac1115a21b325
MD5 471401201956d2ccc41c9bfb38f74a68
BLAKE2b-256 43c7f69613e8022443e7ae990e824b48f4ccf05331ca541d957de77619dd504e

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