Skip to content

b-long/moosecli

Repository files navigation

moosecli

A project template & place to experiment with CLI building.

Install and run using Poetry

Install the application using Poetry:

poetry install

Run the application:

poetry run python -m moosecli

Run the tests:

# Run tests with unittest
poetry run python -m unittest tests/*.py
# Run tests with unittest (verbose)
poetry run python -m unittest -v tests/*.py

Use as a PEX file

A pex file can be built using the included shell script:

./build-pex.sh

The file produced should be fairly small:

du -sh dist/portable_cli
# 18M    dist/portable_cli

Interaction

Once built, copy the file from dist/portable_cli to a computer with Python 3.8+ .

About

A project template for CLI building.

Resources

Stars

Watchers

Forks

Packages

No packages published