Python logo

Sujet précédent

codeop — Compilation de code Python

Sujet suivant

zipimport — Import de modules à partir d'archives Zip

Cette page

  • Signalement de bogue
  • Voir la source

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python logo
  • Python »
  • 3.11.12 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 de modules à partir d'archives Zip
    • Objets zimporter
    • Exemples
  • pkgutil — Utilitaire d'extension de package
  • modulefinder — Identifie les modules utilisés par un 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
    • Deprecated functions
  • 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
  • The initialization of the sys.path module search path
    • Virtual environments
    • _pth files
    • Embedded Python

Sujet précédent

codeop — Compilation de code Python

Sujet suivant

zipimport — Import de modules à partir d'archives Zip

Cette page

  • Signalement de bogue
  • Voir la source
«

Navigation

  • index
  • modules |
  • suivant |
  • précédent |
  • Python logo
  • Python »
  • 3.11.12 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 Apr 12, 2025 (01:04 UTC). Found a bug?
Créé en utilisant Sphinx 7.2.6.