• Stars
    star
    4,244
  • Rank 10,180 (Top 0.3 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cookiecutter template for a Python package.

Cookiecutter PyPackage

Updates Build Status Documentation Status

Cookiecutter template for a Python package.

Features

  • Testing setup with unittest and python setup.py test or pytest
  • Travis-CI: Ready for Travis Continuous Integration testing
  • Tox testing: Setup to easily test for Python 3.6, 3.7, 3.8
  • Sphinx docs: Documentation ready for generation with, for example, Read the Docs
  • bump2version: Pre-configured version bumping with a single command
  • Auto-release to PyPI when you push a new tag to master (optional)
  • Command line interface using Click (optional)

Build Status

Linux:

Linux build status on Travis CI

Windows:

Windows build status on Appveyor

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):

pip install -U cookiecutter

Generate a Python package project:

cookiecutter https://github.com/audreyfeldroy/cookiecutter-pypackage.git

Then:

  • Create a repo and put it there.
  • Add the repo to your Travis-CI account.
  • Install the dev requirements into a virtualenv. (pip install -r requirements_dev.txt)
  • Register your project with PyPI.
  • Run the Travis CLI command travis encrypt --add deploy.password to encrypt your PyPI password in Travis config and activate automated deployment on PyPI when you push a new tag to master branch.
  • Add the repo to your Read the Docs account + turn on the Read the Docs service hook.
  • Release your package by pushing a new tag to master.
  • Add a requirements.txt file that specifies the packages you will need for your project and their versions. For more info see the pip docs for requirements files.
  • Activate your project on pyup.io.

For more details, see the cookiecutter-pypackage tutorial.

Not Exactly What You Want?

Don't worry, you have options:

Similar Cookiecutter Templates

Fork This / Create Your Own

If you have differences in your preferred setup, I encourage you to fork this to create your own version. Or create your own; it doesn't strictly have to be a fork.

  • Once you have your own version working, add it to the Similar Cookiecutter Templates list above with a brief description.
  • It's up to you whether or not to rename your fork/own version. Do whatever you think sounds good.

Or Submit a Pull Request

I also accept pull requests on this, if they're small, atomic, and if they make my own packaging experience better.

More Repositories

1

favicon-cheat-sheet

Obsessive cheat sheet to favicon sizes/types. Please contribute! (Note: this may be in flux as I learn new things about favicon best practices.)
9,875
star
2

binaryornot

Ultra-lightweight pure Python package to check if a file is binary or text.
Python
124
star
3

sphinx-gui

Desktop GUI for editing Sphinx docs. Pre-alpha.
Python
121
star
4

complexity

A refreshingly simple static site generator, for those who like to work in HTML.
Python
118
star
5

how-to

A set of quick 1-page how-to guides. These are really just notes that I write for myself, to aid my own memory and learning.
60
star
6

alotofeffort

Instantly deploy static HTML sites to S3 at the command line.
Python
55
star
7

messagebar

MessageBar: A top bar for notification messages. Dismiss it by clicking the x. Works with Django, but that's optional.
JavaScript
52
star
8

django-columns

Django template filter for splitting a list into columns.
Python
30
star
9

tweepy-utils

A set of Python utility scripts for Twitter account management, using Tweepy.
25
star
10

standardjson

JSON encoder that aims to be fully compliant with the ECMA-262 and ECMA-404 specifications
Python
18
star
11

ponystrap

Simple HTML/CSS/JS components for adding Django ponies to your websites.
CSS
17
star
12

django-handstand-audreyr

DEPRECATED - use https://github.com/pydanny/cookiecutter-django and its forks instead.
Python
16
star
13

pycon-philippines

Quick website for PyCon Philippines 2012. Pull requests are encouraged, on both content and design.
12
star
14

jinja2_pluralize

Jinja2 pluralize filters.
Python
10
star
15

django-startcbv

Management command to start an app with class-based views. You use "python manage.py startcbv <appname>". It's very fresh and unstable, so use at your own risk, but it does work!
Python
10
star
16

cookiecutter-chrome-extension

Cookiecutter template for creating a minimal Google Chrome extension.
JavaScript
9
star
17

docker-cookiecutter

Cookiecutter in a Docker container. Work in progress.
9
star
18

cookiecutter-jquery

Cookiecutter template for a jQuery plugin. Based on https://github.com/jquery-boilerplate/jquery-boilerplate
JavaScript
9
star
19

meteor-urlify

Django's URLify.js file, repackaged for Meteor.
JavaScript
8
star
20

design

Generates various common web design elements. Borders, patterns, textures, gradients, etc.
Python
7
star
21

docker-bamboo-agent

Docker image for a remote agent that connects to Atlassian Bamboo Server.
Shell
7
star
22

rotatingnav

A JS/CSS rotating navigation menu.
JavaScript
6
star
23

cookiecutter-complexity

Cookiecutter template for a Complexity site. See https://github.com/audreyr/cookiecutter and https://github.com/audreyr/complexity.
CSS
6
star
24

docker-bamboo-server

Docker image for Atlassian Bamboo Server.
5
star
25

mathtoy

An Android game made with PhoneGap and XUI.
JavaScript
4
star
26

choosealicense

Choose a License is a Cookiecutter plugin for selecting an open-source license.
Python
4
star
27

pinecone

Pinecone is a Processing-inspired drawing library powered by Pillow.
Jupyter Notebook
4
star
28

auditionrocket_mockups

Some early Inkscape UI mockups for the Audition Rocket website. I'm putting these here as a demo of how you can use Inkscape to make UI mockups for web apps.
4
star
29

cookiecutter-jswidget

Cookiecutter for a generic JS front-end widget. Imagine a jQuery plugin without the jQuery dependency.
JavaScript
4
star
30

fuzzyrainbowcom

The files that make up the website fuzzyrainbow.com
4
star
31

meteor-cms

A Meteor-based CMS. Still very much a work in progress.
JavaScript
3
star
32

dwts-analysis

Analysis of Dancing With the Stars twitter data. This explains why Charlie & Sharna were eliminated in the semifinals.
Python
3
star
33

complexity-example

An example of a Complexity site. Use this with the Complexity static site generator.
CSS
3
star
34

djadmin2-theme-naturale

A theme for django-admin2.
Python
3
star
35

pinaxmascot

The Pinax gnome that rides the Django pony and carries a quiver of reusable Django applications.
3
star
36

rainbowbrowser

Nothing to see here, go away ;)
Python
2
star
37

new-library-sprint

2
star
38

useful

Random useful little scripts.
Python
2
star
39

one-click-hugo-cms

CSS
2
star
40

practice-repo

Fork this and submit a pull request for practice.
2
star
41

lapyladies

Website for the LA PyLadies chapter
Python
2
star
42

Cutebox

A Google Wave gadget that lets you draw, drag, and resize windowlike boxes collaboratively with your Wave friends.
2
star
43

hackerpoint

Python
1
star
44

how-to-immigrate

Our project for LA MigraHack.
1
star
45

pyladies-workshop

Materials for the PyLadies' Intro to Python workshop
1
star
46

vis-experiments

JavaScript
1
star
47

cookiecutter-github

An experimental Cookiecutter that: 1. Generates a bare-bones GitHub project. 2. Sticks the project into a GitHub repo.
Python
1
star
48

try_git

1
star
49

uma-games

HTML
1
star
50

pydream

Python
1
star
51

test-images

Test images from various image processing libraries, conveniently accessible from GitHub Pages.
CSS
1
star
52

barcamp-django-sf-2014-art

Artwork for BarCamp Django SF 2014
1
star
53

audreymroy.com

My personal website, redone in 2013.
HTML
1
star
54

sketch-a-day

An (almost) daily visual experiment
Jupyter Notebook
1
star
55

pythonla

LA Python Website
Python
1
star
56

rstsplitter

Utility script that splits up a big ReStructuredText file into many RST files.
Python
1
star
57

local-movie-ratings

Rotten Tomatoes + scraped movies playing at the local cinema.
Python
1
star
58

wagtail-starter-kit

A cookiecutter complete with wagtail, django layout, vagrant, provisioning scrips, front end build system and more!
Python
1
star
59

wt

A random wxPython project.
Python
1
star
60

localtomatoes

LocalTomatoes displays the Rotten Tomatoes ratings for the movies at your local theater. Just an experiment, to let me play with docopt and michaeljoseph/cookiecutter-pypackage.
Python
1
star