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
Hashes for redisolar-sample-data-generator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39da19692a5fbd2e2d83eb23c7d12991721e722f4732d686ed14a1246cd7c70 |
|
MD5 | 767e7b826ea892562f3d5295292fef10 |
|
BLAKE2b-256 | 0b70922daedb13d742c7cd95441681ae010721aecec32a31ce3dee215f8af3ed |