Viofo dashcam utilities

Basti Tee f76015fdf3 Add import statements breaking linter 4 tahun lalu
.github 47af1e67a3 make default 4 tahun lalu
.vscode d18f77c663 Support for isort 4 tahun lalu
my_module 93d6e361ec Add main executor 4 tahun lalu
tests f76015fdf3 Add import statements breaking linter 4 tahun lalu
.editorconfig 9cd846f725 Integrate different config files 4 tahun lalu
.gitignore 7b38a1c22f Ignore IntelliJ project config 4 tahun lalu
LICENSE.txt 2085931545 Merge pypi sample project 5 tahun lalu
Makefile 593cabb917 Improve make clean 4 tahun lalu
Pipfile 9cd846f725 Integrate different config files 4 tahun lalu
README.md abcb99daec Update README.md 4 tahun lalu
__rename__.sh 9a87cb36e1 Improve rename script 4 tahun lalu
setup.cfg bea9500f04 Add isort reference 4 tahun lalu
setup.py 6bf23c7add Bump version to 0.0.4 4 tahun lalu

README.md

python3-boilerplate

A best-practices template project for Python3 modules


Disclaimer: If you see this on pypi.org please note that the project is only published here for testing purposes. Please visit GitHub for the related template project.


Setup

  • Make sure that python3 and pip3 is installed and available on the path (on Ubuntu: sudo apt-get install python3 python3-pip)
  • On first checkout run make venv to initialize the project configuration
  • Refer to the Makefile to learn about the various operations available
  • To rename the project you can use the provided script

Features

How to use in existing project

To use it in an existing project you can merge the remote changes to your project.

  • Add remote to access the template project

    git remote add py3template git@github.com:BastiTee/python3-boilerplate.git
    git pull py3template master --allow-unrelated-histories
    
  • Solve all merge conflicts and commit. Most likely there will be a lot

  • Do whatever is necessary to remove the boilerplate you don't need, e.g.

    rm -rf my_module tests/test_utils.py __rename__.sh
    
  • Commit your changes and push to your project

Resources

Future ideas and todos

  • Optional static typing for Python 2 and 3 (PEP 484) https://github.com/python/mypy
  • Reflect current state of Python multi-threading
  • Make sure tox is working as expected for supported Python versions

Licensing

This project is licensed under Apache License 2.0.