{
 "id": "python-compiled-file-2-7",
 "name": "Python Compiled File",
 "category": "other",
 "identifiers": {
  "extensions": [
   "pyc"
  ],
  "puid": [
   "fmt/939"
  ],
  "wikidata": [
   "Q55429163"
  ],
  "magic": [
   {
    "offset": 0,
    "hex": "03f30d0a",
    "notes": "PYC 2.7"
   }
  ],
  "signatures": [
   {
    "name": "PYC 2.7",
    "sequences": [
     {
      "position": "bof",
      "offset": 0,
      "pattern": "03f30d0a"
     }
    ]
   }
  ]
 },
 "status": "partial",
 "summary": "Python automatically compiles a python script before running it, the first time the script runs it will create a .pyc in the same directory as the .py file which will then be used if the script is run again to save time by not having to re-compile the code.",
 "projects": [
  {
   "name": "Kaitai Struct: python_pyc_27",
   "url": "https://formats.kaitai.io/python_pyc_27/",
   "kind": "grammar",
   "license": "CC0-1.0"
  },
  {
   "name": "PRONOM fmt/939",
   "url": "https://www.nationalarchives.gov.uk/PRONOM/fmt/939",
   "kind": "format-doc"
  },
  {
   "name": "Wikidata Q55429163",
   "url": "https://www.wikidata.org/wiki/Q55429163",
   "kind": "wiki"
  }
 ],
 "provenance": {
  "sources": [
   "kaitai",
   "pronom",
   "wikidata"
  ]
 },
 "updated": "2026-10-24",
 "version": "2.7",
 "parsers": [
  {
   "engine": "kaitai",
   "url": "https://github.com/kaitai-io/kaitai_struct_formats/blob/master/executable/python_pyc_27.ksy",
   "license": "CC0-1.0"
  }
 ],
 "aliases": [],
 "structure": [],
 "tools": [],
 "conversions": [],
 "samples": [],
 "claims": [],
 "verification": [],
 "family": "python"
}