Skip to main content

PyPi template repository.

Project description

PyPi Template

My take at a template repository that I can fork for every Python project I want to push to PyPi

Latest Version on PyPI Build Status Coverage Status

Howto, the executive summary

  1. fork it
  2. rename it
  3. edit it
  4. extend it
  5. use it

Getting Started

Forking and renaming are the two first steps when using this repository. They are both actions you perform at GitHub, but...

Fork without forking...

You don't have to go through the GitHub concept of forking and do everything from the command line...

$ git clone
$ mv pypi-template your-new-project
$ cd your-new-project
$ git remote remove origin
$ git remote add origin
$ git push -u master origin

Use the Command Line

The repository also includes a small script that automates these steps. If you install the module, the script gets registered in your PATH, and allows for

$ pip install pypi-template

$ pypi-template my-new-project
Cloning into 'pypi-template'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 53 (delta 16), reused 50 (delta 13), pack-reused 0
Unpacking objects: 100% (53/53), done.

$ cd my-new-project/

$ ls
LICENSE.txt		pypi-template		tests		requirements.txt	tox.ini

$ git remote -v
origin (fetch)
origin (push)

Things to edit

  1. module top-level folder

There is a placeholder top-level module folder. You'll probably want to rename that.

$ mv pypi_template your_new_project
  1. LICENSE.txt

Change the license to whatever you feel is (more) appropriate.

  1. .github/

Replace this information with information regarding your project.


Replace the Python package configuration with one appropriate to your project.

Things to do


A basic testing setup has been prepared. To run it locally, issue...

$ make test
___________________________________ summary ____________________________________
  py27: commands succeeded
  congratulations :)

Head over to and register your project. A basic CI configuration is also provided.

Head over to and register your project to consult your code coverage reporting.


Head over to and register for an account. Next simply issue...

$ make publish-test

to publish your module to the test instance of PyPi.


$ make publish

to publish your module to the main instance of PyPi.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypi-template-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pypi_template-0.0.2-py2-none-any.whl (4.3 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page