[][src]Crate python_packed_resources

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.



Declares the foundational data primitives inside packed resources data.


Parsing of packed resources data blobs.




Serializing of structures into packed resources blobs.