{"success":true,"data":{"ext":"hdf5","name":"HDF5","description":"Hierarchical Data Format version 5 (HDF5) is a data model and file format developed at the National Center for Supercomputing Applications and now maintained by The HDF Group. It is used for storing large, complex scientific and engineering data in fields such as meteorology, physics, remote sensing, and machine learning. HDF5 files are generally safe to open, though they may contain very large datasets that require compatible software and sufficient system resources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"89 48 44 46 0D 0A 1A 0A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_hdf5(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HDF5 by magic bytes.\"\"\"\n    signature = bytes([0x89, 0x48, 0x44, 0x46, 0x0D, 0x0A, 0x1A, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isHDF5(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x89, 0x48, 0x44, 0x46, 0x0D, 0x0A, 0x1A, 0x0A]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsHDF5(data []byte) bool {\n    signature := []byte{0x89, 0x48, 0x44, 0x46, 0x0D, 0x0A, 0x1A, 0x0A}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}