{"success":true,"data":{"ext":"wpt","name":"WPT","description":"WordPerfect Template (WPT) is a document template format used by WordPerfect, a word processing application originally developed by Satellite Software International and later maintained by Corel. It is used to create standardized letters, forms, reports, and other documents based on reusable layouts and formatting. As a legacy WordPerfect format, it is generally safe to open, though older files may not display correctly in modern software.","mime":["application/vnd.wordperfect"],"risk_level":"Safe","signatures":[{"hex":"61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"FF 57 50 43","offset":0,"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":["w60","wp61","wp","wp5","wp6","wpd"],"usage":{"python":"def is_wpt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WPT by magic bytes.\"\"\"\n    signature = bytes([0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B])\n    with open(file_path, \"rb\") as f:\n        return f.read(28) == signature","node":"function isWPT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B]);\n  return buffer.subarray(0, 28).equals(signature);\n}","go":"func IsWPT(data []byte) bool {\n    signature := []byte{0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B}\n    if len(data) < 28 {\n        return false\n    }\n    return bytes.Equal(data[:28], signature)\n}"}}}