Skip to main content

Read the latest Real Python tutorials

Project description

python-package-boilerplate

Build Status Requires.io

Boilerplate for a Python Package

Package

Basic structure of package is

├── README.md
├── packagename
│   ├── __init__.py
│   ├── packagename.py
│   └── version.py
├── pytest.ini
├── requirements.txt
├── setup.py
└── tests
    ├── __init__.py
    ├── helpers
    │   ├── __init__.py
    │   └── my_helper.py
    ├── tests_helper.py
    └── unit
        ├── __init__.py
        ├── test_example.py
        └── test_version.py

Requirements

Package requirements are handled using pip. To install them do

pip install -r requirements.txt

Tests

Testing is set up using pytest and coverage is handled with the pytest-cov plugin.

Run your tests with py.test in the root directory.

Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.

Travis CI

There is a .travis.yml file that is set up to run your tests for python 2.7 and python 3.2, should you choose to use it.

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

naxxatrapy-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naxxatrapy-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file naxxatrapy-1.0.1.tar.gz.

File metadata

  • Download URL: naxxatrapy-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for naxxatrapy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 77dd4b748cdf2c3e32bb39cded65ef068ee55b2c71801bc7119e08b09d95b613
MD5 a58080161107645be131d0fd939b3055
BLAKE2b-256 1bb023d50d9715a2d5ff976b1fdc42d5fc601b38786b671be9426bca1563752d

See more details on using hashes here.

File details

Details for the file naxxatrapy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: naxxatrapy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for naxxatrapy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7752310984ae1f17d7734587ddf5e1aa96a834dd7d52938340744ad87758ea88
MD5 f1cd59a9f191b47844b5b6e4503de679
BLAKE2b-256 6a73dbc9da9893e00aeddddb184905fbddd1d080e2ac99efad4ca6f0a3a83088

See more details on using hashes here.

Supported by

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