A template repository for Python 3 projects.
This template provides a logger, as well as set-up and start scripts.
- Follow this guide to create a repository from this template.
- Clone your repository, and
cd
to it - If your repository requires external dependencies:
- Run
python -m venv venv
to create avenv
folder for local dependencies - Use
venv/scripts/activate
to start using the virtual environment - Use
pip
to install the desired dependencies - Use
pip freeze > requirements.txt
to export the list of depencencies
- Run
- (Bash-only) Instruct users to use
setup.sh
to set up their virtual environment in yourREADME.md
- Instruct users to use
start.bat
/start.sh
to run the program in yourREADME.md
- Test run
main.py
usingstart.bat
/start.sh
- Refer to the example in
main.py
to see how to import, instantiate, and use the logger- Log files are saved to
/logs
and rotated at midnight. - Log files are automatically excluded from git
- Log files are saved to