pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://docs.python.org/3/using/../../c-api/../library/../c-api/../library/modules.html

t" content="The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process. The full list of modules described in this chapter is: zipimport ..." /> Importing Modules — Python 3.14.4 documentation
Python logo

Previous topic

codeop — Compile Python code

Next topic

zipimport — Import modules from Zip archives

This page

  • Report a bug
  • Improve this page
  • Show source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.4 Documentation »
  • The Python Standard Library »
  • Importing Modules
  • |
  • |

Importing Modules¶

The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.

The full list of modules described in this chapter is:

  • zipimport — Import modules from Zip archives
    • zipimporter Objects
    • Examples
  • pkgutil — Package extension utility
  • modulefinder — Find modules used by a script
    • Example usage of ModuleFinder
  • runpy — Locating and executing Python modules
  • importlib — The implementation of import
    • Introduction
    • Functions
    • importlib.abc – Abstract base classes related to import
    • importlib.machinery – Importers and path hooks
    • importlib.util – Utility code for importers
    • Examples
      • Importing programmatically
      • Checking if a module can be imported
      • Importing a source file directly
      • Implementing lazy imports
      • Setting up an importer
      • Approximating importlib.import_module()
  • importlib.resources – Package resource reading, opening and access
    • Functional API
  • importlib.resources.abc – Abstract base classes for resources
  • importlib.metadata – Accessing package metadata
    • Overview
    • Functional API
      • Entry points
      • Distribution metadata
      • Distribution versions
      • Distribution files
      • Distribution requirements
      • Mapping import to distribution packages
    • Distributions
    • Distribution Discovery
    • Implementing Custom Providers
      • Example
  • The initialization of the sys.path module search path
    • Virtual Environments
    • _pth files
    • Embedded Python

Previous topic

codeop — Compile Python code

Next topic

zipimport — Import modules from Zip archives

This page

  • Report a bug
  • Improve this page
  • Show source
«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.4 Documentation »
  • The Python Standard Library »
  • Importing Modules
  • |
  • |
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Apr 28, 2026 (13:34 UTC). Found a bug?
Created using Sphinx 8.2.3.
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy