Python logo

Poprzedni temat

codeop — Compile Python code

Następny temat

zipimport — Import modules from Zip archives

Esta página

  • Relatar um bug
  • Mostrar o código-fonte

Nawigacja

  • indeks
  • moduły |
  • dalej |
  • wstecz |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Biblioteka standardowa Pythona »
  • Mengimpor Modul
  • |
  • |

Mengimpor Modul¶

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
    • Przykłady
  • pkgutil — Утилита расширения пакета
  • modulefinder — Find modules used by a script
    • Example usage of ModuleFinder
  • runpy — Поиск и выполнение модулей Python
  • importlib — The implementation of import
    • Wprowadzenie
    • Zadania
    • importlib.abc – Abstract base classes related to import
    • importlib.machinery – Importers and path hooks
    • importlib.util – Utility code for importers
    • Przykłady
      • 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
    • Функціональний API
  • importlib.resources.abc – Abstract base classes for resources
  • importlib.metadata – Accessing package metadata
    • Skorowidz
    • Functional API
      • Entry points
      • Distribution metadata
      • Distribution versions
      • Distribution files
      • Distribution requirements
      • Mapping import to distribution packages
    • Distributions
    • Distribution Discovery
    • Extending the search algorithm
      • Przykład
  • The initialization of the sys.path module search path
    • Virtual environments
    • _pth files
    • Embedded Python

Poprzedni temat

codeop — Compile Python code

Następny temat

zipimport — Import modules from Zip archives

Esta página

  • Relatar um bug
  • Mostrar o código-fonte
«

Nawigacja

  • indeks
  • moduły |
  • dalej |
  • wstecz |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Biblioteka standardowa Pythona »
  • Mengimpor Modul
  • |
  • |
© Prawa autorskie 2001-2025, 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.

Ostatnia modyfikacja wrz 05, 2025 (08:23 UTC). Found a bug?
Created using Sphinx 8.2.3.