Expand description
Python Packed Resources
This crate defines and implements a data format for storing resources useful to the execution of a Python interpreter. We call this data format Python packed resources.
The idea is that a producer collects Python resources required by a Python interpreter - Python module source and bytecode, non-module resource files, extension modules, shared libraries, etc - attaches metadata to those resources (e.g. whether a Python module is also a package), and then serializes all of this out to a binary data structure.
Later, this data structure is parsed back into composite parts. e.g.
to a mapping of Python module names and their respective data. This
data structure is then consulted by a Python interpreter to e.g. power
the module import
mechanism.
This crate is developed primarily for PyOxidizer. But it can be used outside the PyOxidizer project. See the aforementioned docs for the canonical specification of this format.
Structs§
- Resource
- Represents an indexed resource.
- Resource
Parser Iterator - An iterator over an actively parsed packed resources data structure.
Constants§
- HEADER_
V3 - Header value for version 2 of resources payload.
Functions§
- load_
resources - Parse a packed resources data structure.
- write_
packed_ resources_ v3 - Write packed resources data, version 3.