Creating a Python Package

Getting started creating a Python package is very simple. Your project only needs two files, and a directory.

Once you’ve got your package started, you can expand on it and add more features, testing, documentation, and more.

This documentation shows how to build a modern Python package. If you already have a package and want to know what each file does, see Example Directory Tree.

The source for this example is at:

https://pypi-package-example.readthedocs.io/

Application Programming Interface

Notes

The official Python Packaging documentation:

https://packaging.python.org/

The official sample project:

https://github.com/pypa/sampleproject