CLI for Lamby. Built with python.
# Create the virtualenv
pipenv --python 3.7
# Activate the virtualenv
pipenv shell
# Install all project dependencies
pipenv install --dev
# Configure linter
flake8 --install-hook git
git config --bool flake8.strict true
# Set the appropriate environment variables
export MINIO_SERVER_URI=<MINIO_SERVER_URI>
export MINIO_ACCESS_KEY=<MINIO_ACCESS_KEY>
export MINIO_SECRET_KEY=<MINIO_SECRET_KEY>
# Or use dotenv to load environment variables on startup
echo "export MINIO_SERVER_URI=<MINIO_SERVER_URI>\n" \
"export MINIO_ACCESS_KEY=<MINIO_ACCESS_KEY>\n" \
"export MINIO_SECRET_KEY=<MINIO_SECRET_KEY>\n" > lamby/config/development.env
pip install --editable .
# Run commands
lamby --help
# Run all tests
pytest -v
# Lint all the code
flake8 .
# Automatically format your code (fix linting errors)
autopep8 --recursive --in-place .
# Fix imports
isort -rc --atomic .