Python logo

Sujet précédent

codeop --- Compile Python code

Sujet suivant

zipimport --- Import modules from Zip archives

Cette page

  • Signalement de bogue
  • Voir la source

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • La bibliothèque standard »
  • Importer des modules
  • |
  • |

Importer des modules¶

Les modules décrits dans ce chapitre fournissent de nouveaux moyens d'importer d'autres modules Python, et des hooks pour personnaliser le processus d'importation.

La liste complète des modules décrits dans ce chapitre est :

  • zipimport --- Import modules from Zip archives
    • Objets zimporter
    • Exemples
  • pkgutil --- Package extension utility
  • modulefinder --- Find modules used by a script
    • Exemples d'utilisation de la classe ModuleFinder
  • runpy --- Locating and executing Python modules
  • importlib --- The implementation of import
    • Introduction
    • Fonctions
    • importlib.abc -- Abstract base classes related to import
    • importlib.machinery -- Importers and path hooks
    • importlib.util -- Utility code for importers
    • Exemples
      • 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 par fonction
  • importlib.resources.abc -- Abstract base classes for resources
  • importlib.metadata -- Accessing package metadata
    • Aperçu
    • API par fonction
      • Entry points
      • Distribution metadata
      • Distribution versions
      • Distribution files
      • Distribution requirements
      • Mapping import to distribution packages
    • Distributions
    • Distribution Discovery
    • Extending the search algorithm
      • Exemple
  • The initialization of the sys.path module search path
    • Environnements virtuels
    • _pth files
    • Embedded Python

Sujet précédent

codeop --- Compile Python code

Sujet suivant

zipimport --- Import modules from Zip archives

Cette page

  • Signalement de bogue
  • Voir la source
«

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • La bibliothèque standard »
  • Importer des modules
  • |
  • |
© Copyright 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.

Mis à jour le mai 18, 2025 (06:34 UTC). Found a bug?
Créé en utilisant Sphinx 8.2.3.