Skip to content

A github template to start a Python Project - this uses github actions to generate your project based on the template.

License

Notifications You must be signed in to change notification settings

luenix/python-project-template

 
 

Repository files navigation

HOW TO USE THIS TEMPLATE

  1. Click on 'Use this template' or go to https://github.com/rochacbruno/python-project-template/generate
  2. Wait until the first run of CI finishes (Github Actions will process the template and commit to your new repo)
  3. If you want coverage reports and automatic release to PyPI On repository settings->secrets add your PIPY_API_TOKEN and CODECOV_TOKEN (get the tokens on respective websites)
  4. Read the file CONTRIBUTING.md
  5. Then clone your new project and start coding!

What is included?

  • A full feature Makefile with common targets to:
    • lint all python files
    • run all tests
    • run all tests and coverage report
    • format code using black
    • run mypy
    • release to github and pypi
    • create a virtualenv and install project for development
  • A basic project structure with
    • .gitignore
    • Github Actions CI
    • setup.py with common parameters
    • Changelog generation
    • basic test structure using pytest
    • Entry point to run $ project_name
    • Entry point to run $ python -m project_name
  • Basic documentation structure using mkdocs
  • Integration with codecov and pypi

Delete all lines above this ^^^


project_name

codecov CI

project_description

Install it from PyPI

pip install project_name

Usage

from project_name import BaseClass
from project_name import base_function

BaseClass().base_method()
base_function()
$ python -m project_name
#or
$ project_name

Development

Read the CONTRIBUTING.md file.

About

A github template to start a Python Project - this uses github actions to generate your project based on the template.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 55.2%
  • Makefile 30.9%
  • Shell 13.9%