pkgutil — Package extension utility — Python 3.16.0a0 documentation

docs.python.org

Tin mới

zipimport — Import modules from Zip archives

modulefinder — Find modules used by a script

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

site: Module responsible for site-specific configuration.

Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package’s __init__.py:

sys.path_importer_cache

The returned finder is cached in sys.path_importer_cache if it was newly created by a path hook.

importlib: The implementation of the import machinery.

Changed in version 3.3: Updated to be based directly on importlib rather than relying on the package internal PEP 302 import emulation.

reserved filenames

This is a wrapper for the loader get_data API. The package argument should be the name of a package, in standard module format (foo.bar). The resource argument should be in the form of a relative filename, using / as the

namespace packages

This is a wrapper for the loader get_data API. The package argument should be the name of a package, in standard module format (foo.bar). The resource argument should be in the form of a relative filename, using / as the

importlib.resources

The importlib.resources module provides structured access to module resources.