hands-on lab

Python: Packaging

Difficulty: Advanced
Duration: Up to 2 hours
Students: 49
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

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

Prerequisites:

  • Proficient with:
    • The Python runtime
    • The Python language syntax
    • The package installer for Python (pip)

Covered topics

Lab steps

Web IDE Review
Python Packaging