GithubHelp home page GithubHelp logo

python-template's Introduction

python-template

A template repository for Python 3 projects.

This template provides a logger, as well as set-up and start scripts.

Usage

  1. Follow this guide to create a repository from this template.
  2. Clone your repository, and cd to it
  3. If your repository requires external dependencies:
    • Run python -m venv venv to create a venv 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
  4. (Bash-only) Instruct users to use setup.sh to set up their virtual environment in your README.md
  5. Instruct users to use start.bat/start.sh to run the program in your README.md
  6. Test run main.py using start.bat/start.sh
  7. 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

python-template's People

Contributors

kookiiestudios avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.