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
trafficstars

The magic number is sourced from https://github.com/libjxl/libjxl/blob/main/doc/format_overview.md#file-format.

priority/awaiting-more-evidence
lifecycle/stale

Found a old MS `CDFV2 Microsoft Word` file: ```shell ~ file tests/fixtures/sample_2.doc tests/fixtures/sample_2.doc: CDFV2 Microsoft Word ~ file --version file-5.45 magic file from /usr/share/file/misc/magic seccomp support included ``` BTW, I...

Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/upload-artifact` from 2 to 4 Release notes Sourced from actions/upload-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are...

dependencies

Would it be possible to add capacity to recognize e-mail message files (`.msg`/`.eml` files from Outlook or other e-mail programs)? As I understand it, `.msg` files should be identified as...

Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/upload-artifact` from 3 to 4 Release notes Sourced from actions/upload-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are...

dependencies

check EBML header first, then do `find` and limit `find` range to 64 bytes (i dont think EBML header can be that large) also this pr fixes webm detection that...

Update the PNG matcher to match all 8 bytes of the PNG signature as in: https://www.w3.org/TR/png/#5PNG-file-signature I'm not sure that this makes any functional difference but spotted a discrepancy and...

Would it be possible to release a new version / tag? Quite a few changes have happened since 1.2.0. I'm having issues using `sam build` when the requirements is pointed...

Please read https://peps.python.org/pep-0517/ for details, basically that is about ditching the setup.py and adopting the modern (and more secure!) packaging (likely setuptools + pyproject.toml).