Skip to main content

Lorem ipsum dolor fiat lux

Project description

[![Build Status](https://travis-ci.org/dagostinelli/python-package-boilerplate.png?branch=master)](https://travis-ci.org/dagostinelli/python-package-boilerplate) [![Requirements Status](https://requires.io/github/dagostinelli/python-package-boilerplate/requirements.svg?branch=master)](https://requires.io/github/dagostinelli/python-package-boilerplate/requirements/?branch=master)

A terse boilerplate for Python packages. Where other boilerplates contain a great many features such as a CLI, docs, code coverage and varying opinions on what a unit test should look like, this one aims to be lean and mean. I use this on my own projects.

## Package

The package structure is:

` ├── packagename │ ├── __init__.py │ ├── __main__.py │ └── somemodule.py └── tests │ ├── __init__.py │ ├── test_myclass.py │ └── test_mysecondclass.py ├── setup.py ├── .travis.yml ├── .gitignore ├── README.md ├── LICENSE └── VERSION `

## Requirements

Package requirements are handled using setup.py. They will be automatically installed on install or during unit testing

## Unit Tests

Testing is set up using the built in Unit Test framework in Python

Run the tests with python setup.py test in the root directory or use the handy test.sh script in the /scripts folder.

## Travis CI

There is a .travis.yml file that will execute the build and the unit tests against several versions of Python.

## Quick Start

` git clone https://github.com/dagostinelli/python-package-boilerplate cd python-package-boilerplate virtualenv venv source venv/bin/activate cd scripts ./build.sh ./test.sh `

Then begin renaming things and keep running those unit tests as you go.

## CLI

This example shows how to do a command line interface (CLI). You can try it like this:

` git clone https://github.com/dagostinelli/python-package-boilerplate cd python-package-boilerplate python -m packagename `

or like this

` git clone https://github.com/dagostinelli/python-package-boilerplate cd python-package-boilerplate pipsi install . packagename `

## Nice to Add

I enjoy filesystem monitors that look for files as I change them and then automatically execute the unit tests in the background. I haven’t found a cross-platform way to do that yet, so it’s not in this boilerplate. For interested parties running Linux, you can do it in a make file. Create a make watch target in your Makefile`and call `inotifywatch there.

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

pointstorm-dev-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pointstorm_dev-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pointstorm-dev-1.0.0.tar.gz.

File metadata

  • Download URL: pointstorm-dev-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pointstorm-dev-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d84c77d5e71faf9c468d6e089f21035be8d36991d12afa2005b90cfd6aa09df4
MD5 d6e046e117aed437f95845672f8f4a25
BLAKE2b-256 10fb849bb783357fbb66b78d71e6e14b76643e02e38a26d4b02409c544a298e2

See more details on using hashes here.

File details

Details for the file pointstorm_dev-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pointstorm_dev-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e294f1b137d8e1bfe70862bcd7d31238b0c10a3a1acca8df5c3814b6de3586d
MD5 e1ea99d308c5e1779365359e05aa95d5
BLAKE2b-256 eb7b1e283184a3a6f2d4d68237938a47b573f0668d066651187ca85632265053

See more details on using hashes here.

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