fontlab_glyport.adaptation_entries
adaptation_entries
Non-Mach-O code loading and validated extraction into caller-owned storage.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
PY311_MAGIC |
attribute | ||
PYC_MAGIC |
attribute | ||
archive_inventory |
function | (path: str | Path) -> tuple[ArchiveMember, ...] |
Every member with its kind and bytecode version, foreign bytecode included. |
archive_members |
function | (path: Path) -> tuple[tuple[str, bytes], ...] |
Read/validate all members before publishing; filenames never imply ABI. |
check_pyc |
function | (data: bytes, name: str='bytecode') -> str |
Check the 16-byte PEP 552 header without unmarshalling foreign code. |
choose_archive |
function | (paths, version: str='3.11') -> Path | None |
The first archive whose bytecode is all <code>version</code> by magic (names ignored). |
pyc_version |
function | (data: bytes) -> str | None |
The CPython release whose bytecode magic starts <code>data</code>, if known. |
read_code |
function | (path: Path) -> CodeType |
Compile source or load checked 3.11 bytecode on a 3.11 interpreter only. |
unpack_archive |
function | (path: str | Path, destination: str | Path) -> Path |
Extract validated members to a new directory; originals remain untouched. |