Skip to main content

Binbash Leverage Command-Line tool.

Project description

Binbash Leverage

Leverage CLI

Leverage CLI is the tool used to manage and interact with any Leverage project.

It transparently handles the most complex and error prone tasks that arise from working with a state-of-the-art infrastructure definition like our Leverage Reference Architecture. Leverage CLI uses a dockerized approach to encapsulate the tools needed to perform such tasks and to free the user from having to deal with the configuration and management of said tools. Provides the means to interact with your Leverage project and allows you to define custom tasks to run.

Documentation

For installation instructions and all documentation regarding Leverage CLI, please refer to this page.

Running Tests

To run unit tests, pytest is the tool of choice, and the required dependencies are available in the corresponding dev-requirements.txt.

Integration tests are implemented using bats. Bear in mind that bats tests are meant to be run in a throwaway environment since they perform filesystem manipulations and installation and removal of packages, and the cleanup may not be completely thorough. As such, is highly recommended to run these tests using de docker image.

Manually

Unit tests:

pip3 install -r dev-requirements.txt
python3 -m pytest

Integration tests:

bats -r tests/bats

Using docker image

A Docker image suitable for running all tests is provided and available in DockerHub.

To run all tests, run make tests. Alternatively make test-unit or make test-int for unit or integration tests respectively.

Release Process

  • On every PR, a Github Action workflow is triggered to create/update a release draft.
  • The version number is determined by the labels of those PRs (major, minor, fix).
  • The release draft has to be manually published. This allows for any number of PR (features, fixes) to make the cut.
  • Once a release is published, another workflow is triggered to create and push the package to PyPi.

Contributors/Contributing

License

Leverage CLI is licensed under MIT licenseBinBash Inc

Project details


Release history Release notifications | RSS feed

This version

1.5.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leverage-1.5.2.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leverage-1.5.2-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file leverage-1.5.2.tar.gz.

File metadata

  • Download URL: leverage-1.5.2.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for leverage-1.5.2.tar.gz
Algorithm Hash digest
SHA256 b3fc97536531f95f6707dbb85dff6ae55a66563b9ab2b91df5d6a73a0e5ddacf
MD5 078667f7081e1eae1b49f9c989ab32de
BLAKE2b-256 665f9836e931f70b8f3678dd3c6aa4abbb1b53c6929670cbd17a92989efe42f2

See more details on using hashes here.

File details

Details for the file leverage-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: leverage-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for leverage-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3fc648ad8c2aa48a2db2c3a522edd09ee2677c61d64603c4486d01fbb903869
MD5 5faeeffe8a0a414cd79d748ea7463178
BLAKE2b-256 edbe1c5dc13aa78c646ffff7bd717c607a6f03b841c8950418197df7e6483e83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page