wire / magic /
pyc
Python bytecode (.pyc) signature A Python 3.7+ bytecode file begins with a 16-byte header: a 4-byte magic number (version-specific), a 4-byte flags field, a 4-byte timestamp or hash, and a 4-byte source size or hash.
magic kind signature status de-facto verification verified tier B file-signature@1
aka: pyc magic · .pyc · .pyo
file signature magic: CB 0D 0D F3⧉ copy @ offset 0
.pyc .pyo application/x-python-code
spec: Python import system
Magic number varies by Python version (e.g., 0xCB0D0DF3 for 3.11). Flags: 0 = timestamp-based, 1 = hash-based (PEP 552). The marshal module serializes the code object after the header. pyc files are cached in __pycache__/ directories.
agent: curl -H 'accept: application/json' wire.phall.io/magic/pyc⧉ copy
or /magic/pyc.json ⧉ copy
wire.phall.io ⌘K search main ✓