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

This package installs the load_redisolar command. Running it generates sample data and uploads it to a target Redis instance.

By default, redisolar uploads to a Redis instance running on localhost at port 6379, with no password. It uses an included JSON fixture file containing Site data.

You can override the hostname, port, and fixture file with the --hostname, --port, and --filename options:

$ load_redisolar --hostname 192.168.1.2 --port 16379 --filename path/to/sites.json

Specifying a password

For password-protected Redis instances, you can specify a password interactively with the --request-password option.

$ load_redisolar --request-password
Redis password: xyz

Specify a password non-interactively by setting the environment variable REDISOLAR_REDIS_PASSWORD.

$ export REDISOLAR_REDIS_PASSWORD=xyz
$ 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-1.0.0.tar.gz (21.2 kB view details)

Uploaded Source

File details

Details for the file redisolar-sample-data-generator-1.0.0.tar.gz.

File metadata

  • Download URL: redisolar-sample-data-generator-1.0.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for redisolar-sample-data-generator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b4abfdb7a9aa88716451caddd6fb21a361c95828eba71fb3aabc2f54ee1227d
MD5 e0256bcad2f801db2df25f88bec955dd
BLAKE2b-256 bd326aa78fb0c129f62fd73c67de6812dcbdc2fd6127c1a8253317c958def9e6

See more details on using hashes here.

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