Skip to main content

How to make a Python package.

Project description

Sample package structure Build StatusDocumentation Status

This is a tiny, little package that shows how to easily setup a python package that includes

  1. Modularized structure
  2. A simple unittest setup using .travis.yml
  3. An easy environment building option via environment.yml
  4. Documentation of the code based on sphinx.

With this sample repository and a few instructions you should be good to go to create your own repositories that are simple to distribute and easily reproducible in the future.

Where do you start?

The simplest way is to take a peak into the documentation which is located here: Documentation. There, I will explain and go through the few necessary steps to get you started to package your modules.

Installation of this package

A few simple steps:

# Create the conda environment and install dependencies
conda env create -f environment.yml

# Activate the conda environment
conda activate htmapp

# Install your package
pip install -e .

The -e simply let's you modify the package without having to reinstall it all the time.

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

htmapp-0.0.4.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

htmapp-0.0.4-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file htmapp-0.0.4.tar.gz.

File metadata

  • Download URL: htmapp-0.0.4.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for htmapp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2436dcd67f1239ab18ccde1f04ecbe8a381e35c45fe477da086a20bf56e2d383
MD5 c8398788e267c73537f96918404dc116
BLAKE2b-256 f0c2916eecf2da6a2801b578bc4e262412054d612259b18e88e2b6e1aacfbf78

See more details on using hashes here.

File details

Details for the file htmapp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: htmapp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for htmapp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f976eb1a4b10ba513467712c336ce98c65ff03cb30da02aa4baedab51ea149
MD5 d55bcd23bb4995c50ca6487b37f89425
BLAKE2b-256 e3f6c160c574ae3f237952314bfdd916f363b1eda1b20cee5ca8f728c98a3541

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