[File] Numpy data files

Steve Grubb sgrubb at redhat.com
Wed Apr 22 20:35:24 UTC 2020


Hello,

A lot of Linux systems have python data files stored in the NumPy file format. 
The specification for it can be found here:

https://numpy.org/devdocs/reference/generated/numpy.lib.format.html#format-version-1-0

The magic pattern that detects this is as follows:

0       string  \223NUMPY                       NumPy data file
!:mime  application/x-numpy-data

I don't know where you would like to put this or I would have turned it into 
a patch. I don't think its important to detect each version of the format as 
I have no idea how many there actually are.

Best Regards,
-Steve




More information about the File mailing list