This is the script repository of the Axolotl series in Python. These scripts are written for the common use cases for the life of an engineer. You may configure axolpy through configuration file or command line parameters.
Configure the follow environment variables:
AXOLPY_PATH=~/axolpy-script # The path to axolpy-script directory
If AXOLPY_PATH
is not set, ~/axolpy
will be used.
You are recommended to use pyenv and pipenv to install the dependencies. To install all dependencies:
pipenv install
You can install dependencies with the old way by using requirements.txt.
pip install -r requirements.txt
Run this to encrypt a message. Enter the key and message or provide them using -k
for key file and -m
for message.
python bin/crypt-message.py
Similarly, run this to decrypt a message:
python bin/crypt-message.py --decrypt
See the help for more details:
python bin/crypt-message.py --help
You'll see output like this:
usage: crypt-message.py [-h] [-g] [-k KEY_FILE] [-d] [-m MESSAGE]
Encrypt or decrypt a message. The output is written to stdout.
By default, encryption is executed. To decrypt, use the --decrypt.
options:
-h, --help show this help message and exit
-g, --generate-key-file
Generate a key file. If this is specified, other arguments are ignored.
-k KEY_FILE, --key-file KEY_FILE
The path to the key file.
-d, --decrypt Decrypt a message.
-m MESSAGE, --message MESSAGE
Message to encrypt or decrypt. If not specified, read from stdin.
To run load test:
locust -f bin/redis-cluster-load-test.py --headless -u 1000 -r 100 --run-time 5m --stop-timeout 5
- axolpy-lib for the base library