Skip to main content

A sample data generator for Redis University's example application.

Project description

Redisolar Sample Data Generator

This is a fast sample data generator for the Education team's "redisolar" applications.

Python Version

This package requires Python 3.7.

Installation

After checking out the repository, make sure you are using a virtualenv. Create one in the checkout directory like this:

python3 -m venv env

Then activate it:

source env/bin/activate

Next you can install the Python dependencies with pip:

pip install .

If you're going to work on the code, install it in "editable" mode and include the dev dependencies:

pip install -e ".[dev]"

Running

Environment variables

Installing this package should add the "load_redisolar" command to your path.

Before running this command, make sure to set the following required environment variables, or you will get an error:

  • REDISOLAR_REDIS_HOST - the hostname of your redis server
  • REDISOLAR_REDIS_PORT - the port number of your redis server

Set either of the following optional environment variables:

  • REDISOLAR_REDIS_PASSWORD - the password to your redis server
  • REDISOLAR_REDIS_KEY_PREFIX - the prefix that you want to use for reidsolar keys (defaults to "app")

Command

Run the load_redisolar command to generate sample data and persist it in the target redis instance:

load_redisolar

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

redisolar-sample-data-generator-0.0.1.tar.gz (21.1 kB view hashes)

Uploaded Source

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