{"success":true,"data":{"ext":"prt","name":"PRT","description":"PRT is a proprietary part-model file format used by PTC’s Creo Parametric, formerly Pro/ENGINEER, for storing three-dimensional mechanical design data. It is used to create and edit individual parts in computer-aided design workflows, including engineering documentation, simulation, and manufacturing preparation. The format is generally safe, but as with other CAD files, it should be opened in trusted software because malformed or very large models can affect application stability.","mime":["application/x-prt"],"risk_level":"Safe","signatures":[{"hex":"30 4D 33 43","offset":8,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_prt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PRT by magic bytes at offset 8.\"\"\"\n    signature = bytes([0x30, 0x4D, 0x33, 0x43])\n    with open(file_path, \"rb\") as f:\n        f.seek(8)\n        return f.read(4) == signature","node":"function isPRT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x30, 0x4D, 0x33, 0x43]);\n  if (buffer.length < 12) return false;\n  return buffer.subarray(8, 12).equals(signature);\n}","go":"func IsPRT(data []byte) bool {\n    signature := []byte{0x30, 0x4D, 0x33, 0x43}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[8:12], signature)\n}"}}}