auto-cli-py: python package to automatically create CLI from function via introspection
Project description
auto-cli-py
Python Library for Training a model
Setup
TL;DR Install for usage
# Install from github
pip install git+https://github.com/tangledpath/auto-cli-py
In python code
Development
- Standard python packaging - Follows methodologies from: https://python-packaging.readthedocs.io/en/latest/minimal .html
- Uses pytest
Pytest
https://docs.pytest.org/en/latest/
Python (Anaconda) environment
(assumes anaconda is properly installed)
# First time. Create conda environment from environment.yml and activate it:
conda env create -f environment.yml -n auto-cli-py
conda activate auto-cli-py
# If environment changes:
conda activate auto-cli-py
conda env update -f=environment.yml
# -- OR remove and restart --
conda remove --name auto-cli-py --all
conda env create -f environment.yml
Activate environment
conda activate auto-cli-py
# This symlinks the installed auto_cli package to the source:
pip install -e .
Preparation
conda activate auto-cli-py
Linting and Testing
pytest behavior and output is controlled through auto_cli/tests/pytest.ini
# Lint all code:
pylint auto_cli
# Run all tests
pytest
# See more options for pytest:
pytest --help
# This is handy:
pytest --fixtures-per-test
Installation (other)
# AND/OR Install from a specific github branch
pip uninstall auto-cli-py
pip install git+https://github.com/tangledpath/auto-cli-py.git@features/blah
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
auto-cli-py-0.4.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for auto_cli_py-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526c26c5b66262be8c8eb643a9f6356213a82c6de48184a61ba1380568b75403 |
|
MD5 | 1e425411a7b96370363c089a87b39ea9 |
|
BLAKE2b-256 | 93b2710dabc6d303bc5fb7b5959dbbb54161d7c869bc2485d289fb967a1a7ffc |