# pyc_parsing

This directory contains small python scripts that take a single argument, the path to a `.pyc` file, as input, and return the hex-encoded representation of the four magic bytes, concatenated with the byte-code of the respective cache file.
The script names encode the minimum and maximum supported python versions.
For example, a script named `python_37_313.py` supports python >=3.7,<3.14.
The `rich_313_parser.py` is only used for manual exploration of cache file contents.

Regarding the output, you can always take the first four (hex-)bytes and interpret it as the hex-representation of the magic bytes of the pyc file, and the remaining output as the hex representation of the bytecode.
