Overview of the oxidized_importer Python Extension
mainThe oxidized_importer is a Python extension module used to manage Python resources and imports efficiently. It provides three primary capabilities:
- Custom Module Importing: Use the
OxidizedFinderclass to handle Pythonimportstatements and resource loading, which can include loading modules directly from memory. - Resource Scanning: Scan the filesystem for Python resources (such as source modules, bytecode files, package resources, and distribution metadata) and convert them into Python objects.
- Resource Serialization: Serialize Python resource data into an efficient binary data structure. This allows you to create a standalone resources blob containing all necessary modules and bytecode to be distributed with a Python application.
oxidized_importer is automatically included in applications built with PyOxidizer, but it can also be built as a standalone extension module for use with standard Python installations.