Skip to content

lamby-ml/lamby-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lamby-cli

CLI for Lamby. Built with python.

Setup

Creating the development environment

# 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

Development

Running the application

# 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 Tests

# Run all tests
pytest -v

Linting the code

# Lint all the code
flake8 .
# Automatically format your code (fix linting errors)
autopep8 --recursive --in-place .
# Fix imports
isort -rc --atomic .

About

CLI for Lamby. Built with Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages