GithubHelp home page GithubHelp logo

python-template's Introduction

python-template

A template for Python applications.

Creating a new project

This template is different from most project templates in that this is intended to keep your project up to date with changes to the template by treating the template as another git branch.

  1. Create a git repository with the template origin:

    git clone [email protected]:rouge8/python-template.git YOUR_PROJECT
    cd YOUR_PROJECT
    git remote rename origin template
  2. Update the template with your project's details:

    # Rename the application directory
    git mv src/python_template src/YOUR_PROJECT
    
    # Find and replace all instances of 'python-template' / 'python_template'
    # with 'your-project' / 'your_project'
    git grep python.template
  3. Commit your changes and push them to your Git repository.

Keeping up to date

The strength of this approach to a template repository is that it makes keeping up to date as easy as a git merge and resolving any conflicts:

# Add the 'template' remote if necessary
git remote get-url template || git remote add template [email protected]:rouge8/python-template.git

# Fetch and merge the latest changes
git fetch template
git merge template/main

# Resolve any merge conflicts, run the tests, commit your changes, etc.

python-template's People

Contributors

pre-commit-ci[bot] avatar rouge8 avatar dependabot[bot] avatar

Watchers

 avatar  avatar

python-template's Issues

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.