liveBook · Manning

Distribution package

A distribution package is an installable Python distribution containing package code and associated metadata, dependencies, and licensing information.

How 2 Manning books explain it

Python Workout: 50 ten-minute exercises

A distribution package is a distributable wrapper containing a Python package together with metadata, dependencies, tests, licensing information, and installation instructions.

How it is used
Packages Python code for distribution through PyPI with metadata, dependencies, tests, licensing, and installation instructions.
How deep it goes
Explains the nested directory structure and gives a minimal setup.py, Poetry, and PyPI workflow.
Examples
Uses mypackage directories, import statements, and Poetry shell commands as concrete examples.
What you can do after
Operate Poetry to create, build, and publish a distribution package through PyPI.

Read how Python Workout: 50 ten-minute exercises explains distribution package →

Python Workout, Second Edition

A distribution package is an installable Python distribution containing package code, metadata, dependencies, licensing information, and installation instructions.

How it is used
Packages Python code for distribution through PyPI with metadata, dependencies, tests, licensing, and installation instructions.
How deep it goes
Distinguishes distribution and Python packages, shows their nested directories, and names setup.py without detailing its configuration.
Examples
Uses mypackage, __init__.py, and import statements to illustrate package structure and loading.
What you can do after
Operate/configure uv to create, distribute, install, and publish Python packages while managing environments.

Read how Python Workout, Second Edition explains distribution package →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.