Modules and Packages

Learning PathSkills: Packages, Modules, Import System, pip, PyPI

A person loading a large ship with shipping containers that represent Python packages

Unlock the full potential of Python modules and packages. Dive into advanced importing, manage dependencies with pip, distribute projects on PyPI, and craft excellent README files. Perfect your Python project management and distribution skills.

Modules and Packages

Learning Path ⋅ 9 Resources

Title image for Python Modules and Packages: An Introduction (Python Best Practices Artwork)

Course

Python Modules and Packages: An Introduction

In this course, you'll explore Python modules and Python packages, two mechanisms that facilitate modular programming. See how to write and import modules so you can optimize the structure of your own programs and make them more maintainable.

Title image for Python Modules and Packages (Python Modules & Packages)

Interactive Quiz

Python Modules and Packages

Title image for Advanced Python import Techniques (Python import: Advanced Techniques and Tips)

Course

Advanced Python import Techniques

The Python import system is as powerful as it is useful. In this in-depth video course, you'll learn how to harness this power to improve the structure and maintainability of your code.

Title image for Python's __all__: Packages, Modules, and Wildcard Imports (Python's __all__: Packages, Modules, and Wildcard Imports)

Tutorial

Python's __all__: Packages, Modules, and Wildcard Imports

Learn about wildcard imports and the __all__ variable in Python. With __all__, you can prepare your packages and modules for wildcard imports, which are a quick way to import everything.

Title image for Python Zip Imports: Distribute Modules and Packages Quickly (Python Zip Imports: Distribute Modules and Packages Quickly)

Tutorial

Python Zip Imports: Distribute Modules and Packages Quickly

Learn what Zip imports are and how to use them in Python. You'll learn to create your own importable ZIP files and make them available for use. Finally, you'll learn how to use the zipimport module to dynamically import code from ZIP files.

Title image for A Beginner's Guide to pip (What Is pip? A Guide for New Pythonistas)

Course

A Beginner's Guide to pip

What is pip? In this beginner-friendly course, you'll learn how to use pip, the standard package manager for Python, so that you can install and manage additional packages that are not part of the Python standard library.

Title image for Managing Python Dependencies (Managing Python Dependencies Course)

Course

Managing Python Dependencies

Get up to speed with Python dependency management quickly and go from “writing scripts” to “building applications” with this complete course.

Title image for How to Publish Your Own Python Package to PyPI (How to Publish an Open-Source Python Package to PyPI)

Course

How to Publish Your Own Python Package to PyPI

Learn how to create a Python package for your project and how to publish it to PyPI, the Python Package Repository with this step-by-step course. Quickly get up to speed on everything from naming your package to configuring it using setup.py.

Title image for Using PyInstaller to Easily Distribute Python Applications (Using PyInstaller to Easily Distribute Python Applications)

Tutorial

Using PyInstaller to Easily Distribute Python Applications

Learn how to use PyInstaller to turn your Python application into an executable with no dependencies or installation required. This is great if you want to distribute applications to users who may or may not be Python developers.

Title image for Creating Great README Files for Your Python Projects (Creating Great README Files for Your Python Projects)

Tutorial

Creating Great README Files for Your Python Projects

Learn how to create, organize, and format high-quality README files for your Python projects.

Got feedback on this learning path?

Looking for real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!

« Browse All Learning Paths