{"success":true,"data":{"ext":"gnumeric","name":"GNUMERIC","description":"GNUMERIC is the native spreadsheet workbook format used by Gnumeric, an open-source spreadsheet application developed within the GNOME project. It is used to store worksheets, formulas, formatting, charts, and other spreadsheet data for personal, academic, and business analysis, and can be opened by Gnumeric and some compatible office suites. The format is generally safe, though as with any document file, untrusted files should be opened with current software to avoid parsing issues.","mime":["application/x-gnumeric"],"risk_level":"Safe","signatures":[{"hex":"3D 3C 67 6D 72 3A 57 6F 72 6B 62 6F 6F 6B","offset":39,"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_gnumeric(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GNUMERIC by magic bytes at offset 39.\"\"\"\n    signature = bytes([0x3D, 0x3C, 0x67, 0x6D, 0x72, 0x3A, 0x57, 0x6F, 0x72, 0x6B, 0x62, 0x6F, 0x6F, 0x6B])\n    with open(file_path, \"rb\") as f:\n        f.seek(39)\n        return f.read(14) == signature","node":"function isGNUMERIC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3D, 0x3C, 0x67, 0x6D, 0x72, 0x3A, 0x57, 0x6F, 0x72, 0x6B, 0x62, 0x6F, 0x6F, 0x6B]);\n  if (buffer.length < 53) return false;\n  return buffer.subarray(39, 53).equals(signature);\n}","go":"func IsGNUMERIC(data []byte) bool {\n    signature := []byte{0x3D, 0x3C, 0x67, 0x6D, 0x72, 0x3A, 0x57, 0x6F, 0x72, 0x6B, 0x62, 0x6F, 0x6F, 0x6B}\n    if len(data) < 53 {\n        return false\n    }\n    return bytes.Equal(data[39:53], signature)\n}"}}}