Python: Packaging

Lab Steps

Web IDE Review
Python Packaging

The hands-on lab is part of this learning path

Ready for the real environment experience?

Time Limit2h


Learn the current method for creating Python packages.

Packaging Python-based applications has evolved over time. Up until Python 3.12 the standard library included a packaging library called distutils. The distutils package is being deprecated in favor of third-party options such as build and setuptools. This lab explores Python packaging through hands-on learning.

Learning Objectives:

  • Creating source and distribution packages
  • The pyproject.toml file.
  • The third-party modules:
    • build
    • setuptools


  • Proficient with:
    • The Python runtime
    • The Python language syntax
    • The package installer for Python (pip)
About the Author
Learning paths54

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered Topics