Python logo

Προηγούμενο θέμα

codeop — Compile Python code

Επόμενο θέμα

zipimport — Import modules from Zip archives

This page

  • Report a bug
  • Show source

Πλοήγηση

  • ευρετήριο
  • μονάδες |
  • επόμενο |
  • προηγούμενο |
  • Python logo
  • Python »
  • 3.13.7 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 – Ανάγνωση, άνοιγμα και πρόσβαση σε πόρους πακέτων
    • Λειτουργικό 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
    • Extending the search algorithm
      • Example
  • The initialization of the sys.path module search path
    • Virtual environments
    • _pth files
    • Embedded Python

Προηγούμενο θέμα

codeop — Compile Python code

Επόμενο θέμα

zipimport — Import modules from Zip archives

This page

  • Report a bug
  • Show source
«

Πλοήγηση

  • ευρετήριο
  • μονάδες |
  • επόμενο |
  • προηγούμενο |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • The Python Standard Library »
  • Importing Modules
  • |
  • |
© Πνευματικά δικαιώματα 2001-2025, Python Software Foundation.
Η σελίδα αυτή διατίθεται υπό την άδεια χρήσης του Python Software Foundation, 2η έκδοση.
Παραδείγματα, οδηγοί και λοιπά κομμάτια κώδικα στην τεκμηρίωση διατίθενται επιπλέον υπό την άδεια χρήσης Zero Clause BSD.
Δες την Ιστορία και Άδεια χρήσης για περισσότερες πληροφορίες.

Το Python Software Foundation είναι ένας μη κερδοσκοπικός οργανισμός. Παρακαλώ κάντε μια δωρεά.

Τελευταία ενημέρωση στις Σεπ 29, 2025 (07:26 UTC). Βρήκες ένα bug?
Δημιουργήθηκε με την χρήση του Sphinx 8.2.3.