anas-awadalla / python-template

Simple python template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple python template

License:MIT License


Languages

Language:Python 62.1%Language:Makefile 37.9%