{"success":true,"data":{"ext":"ots","name":"OTS","description":"OpenDocument Spreadsheet Template (OTS) is an open file format defined and maintained by the Organization for the Advancement of Structured Information Standards (OASIS). It is used to store spreadsheet templates for applications such as LibreOffice Calc, Apache OpenOffice Calc, and other compatible office suites. The format is not considered legacy, and security risks are generally low, though template files from untrusted sources should still be opened with standard caution.","mime":["application/vnd.oasis.opendocument.spreadsheet-template"],"risk_level":"Safe","signatures":[{"hex":"50 4B","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":["ods","wks","xls","xlsx","xlt"],"usage":{"python":"def is_ots(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OTS by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isOTS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsOTS(data []byte) bool {\n    signature := []byte{0x50, 0x4B}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Office"}}