Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.24 KB

python_template

pypi Open In Colab Try it on gitpod

A nice template to start with

Install

pip install python_template

Python examples

Checkout these examples to call this as a lib:

API

This module exposes a single function hello_world which takes the same arguments as the command line tool:

  • message the message to print. (required)

For development

Either locally, or in gitpod (do export PIP_USER=false there)

Setup a virtualenv:

python3 -m venv .env
source .env/bin/activate
pip install -e .

to run tests:

pip install -r requirements-test.txt

then

make lint
make test

You can use make black to reformat the code

python -m pytest -x -s -v tests -k "dummy" to run a specific test