filetype.py icon indicating copy to clipboard operation
filetype.py copied to clipboard

Small, dependency-free, fast Python package to infer binary file types checking the magic numbers signature

Results 75 filetype.py issues
Sort by recently updated
recently updated
newest added

via: https://github.com/h2non/filetype.py/pull/51

Use pytest, increase coverage, and fix found bug.

There is fuzzing tool ```atheris``` is applied to test filetype.py. Install ```pip install atheris``` and run ```fuzzing.sh```. Project root directory was chosen as current for quickly editing sources. Possibly to...

CC @ferstar ``` $ git lfs fetch fetch: Fetching reference refs/heads/master [decd61ee3bb0266d92145895a7e6290914a514713df9456bac98f6a593508523] Object does not exist on the server: [404] Object does not exist on the server error: failed to...

I found a PDF file that begin with the sequence: firmas_t/1082774737.png%PDF-1.7 So, the method filetype.match returns None. According to this stackoverflow [answer](https://stackoverflow.com/a/1456625), some programs can generate this, but are still...

why not 'video/x-matroska'? is it because the codec (hevc+opus)?

cosmetic changes in apng also for some reason my first pull request created apng branch in your repo 👀

Certain FLAC files (older ones, as I understand it) may have ID3 metadata tags instead of or addition to Vorbis tags. These files are reported to have a MIME type...

Proper type hinting for function returns should be implemented so that auto-completion will be provided for types like strings for instance, as currently the IDE does not know what types...

``` $ filetype --version usage: filetype [-h] [-v] file [file ...] filetype: error: the following arguments are required: file ```