Документация Python неофициальный перевод

modules.md

37 строк · 3.3 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3.7/library/modules.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Импорт модулей89Модули, описанные в этой главе, предоставляют новые способы импорта других модулей Python и перехватчики для настройки процесса импорта.1011Полный список модулей, описанных в этой главе:1213- [`zipimport` – Импорт модулей из Zip-архивов](https://python-all.ru/3.7/library/zipimport.html)1415  - [Объекты zipimporter](https://python-all.ru/3.7/library/zipimport.html#zipimporter-objects)16  - [Примеры](https://python-all.ru/3.7/library/zipimport.html#examples)17- [`pkgutil` – Утилита расширения пакетов](https://python-all.ru/3.7/library/pkgutil.html)18- [`modulefinder` – Поиск модулей, используемых скриптом](https://python-all.ru/3.7/library/modulefinder.html)1920  - [Пример использования `ModuleFinder`](https://python-all.ru/3.7/library/modulefinder.html#example-usage-of-modulefinder)21- [`runpy` – Поиск и выполнение модулей Python](https://python-all.ru/3.7/library/runpy.html)22- [`importlib` – Реализация `import`](https://python-all.ru/3.7/library/importlib.html)2324  - [Введение](https://python-all.ru/3.7/library/importlib.html#introduction)25  - [Функции](https://python-all.ru/3.7/library/importlib.html#functions)26  - [`importlib.abc` – Абстрактные базовые классы, связанные с импортом](https://python-all.ru/3.7/library/importlib.html#module-importlib.abc)27  - [`importlib.resources` – Ресурсы](https://python-all.ru/3.7/library/importlib.html#module-importlib.resources)28  - [`importlib.machinery` – Импортёры и хуки пути](https://python-all.ru/3.7/library/importlib.html#module-importlib.machinery)29  - [`importlib.util` – Вспомогательный код для импортёров](https://python-all.ru/3.7/library/importlib.html#module-importlib.util)30  - [Примеры](https://python-all.ru/3.7/library/importlib.html#examples)3132    - [Программный импорт](https://python-all.ru/3.7/library/importlib.html#importing-programmatically)33    - [Проверка возможности импорта модуля](https://python-all.ru/3.7/library/importlib.html#checking-if-a-module-can-be-imported)34    - [Прямой импорт файла с исходным кодом](https://python-all.ru/3.7/library/importlib.html#importing-a-source-file-directly)35    - [Настройка импортёра](https://python-all.ru/3.7/library/importlib.html#setting-up-an-importer)36    - [Аппроксимация `importlib.import_module()`](https://python-all.ru/3.7/library/importlib.html#approximating-importlib-import-module)37