filetype.py 1.0.7-1 source package in Ubuntu
Changelog
filetype.py (1.0.7-1) unstable; urgency=medium * Initial release. (Closes: #953523) * Based on initial packaging by Joao Eriberto Mota Filho <email address hidden> -- Jerome Charaoui <email address hidden> Sat, 12 Jun 2021 12:04:52 -0400
Upload details
- Uploaded by:
- Jerome Charaoui
- Uploaded to:
- Sid
- Original maintainer:
- Jerome Charaoui
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
filetype.py_1.0.7-1.dsc | 2.0 KiB | 2cb4c7a2b599b2f50c120f4fae9b099159d3ec6c964a4c090f50d1e97dc8e9f9 |
filetype.py_1.0.7.orig.tar.gz | 649.7 KiB | d8ef4b5ade2c20577d2a9c70fd3a251f9d7843bc896b548a0a137520900a9e57 |
filetype.py_1.0.7-1.debian.tar.xz | 3.2 KiB | 657b2f97346955ddc75ebbd952dc836272e1b7cd7f1ee3c340bac2301004bf1c |
No changes file available.
Binary packages built by this source
- python3-filetype: Infer file type and MIME type of any file/buffer
Small and dependency free Python module to infer file type and MIME type
checking the magic numbers signature of a file or buffer (aka file pattern).
.
This is a Python port from filetype Go package.
.
Features:
- Simple and friendly API.
- Supports a wide range of file types.
- Provides file extension and MIME type inference.
- File discovery by extension or MIME type.
- File discovery by kind (image, video, audio...).
- Pluggable: add new custom type matchers.
- Fast, even processing large files.
- Only first 261 bytes representing the max file header is required, so you
can just pass a list of bytes.
- Dependency free (just Python code, no C extensions, no libmagic bindings).
- Cross-platform file recognition.
.
Currently, the following patterns are recognised:
- Image: bmp, cr2, dwg, gif, heic, ico, jpg, jpx, jxr, png, psd, tif, xcf,
webp.
- Video: avi, flv, m4v, mkv, mov, mp4, mpg, webm, wmv, 3gpp.
- Audio: aac, aiff, amr, flac, m4a, mid, mp3, ogg, wav.
- Archive: ar, br, bz2, cab, crx, dcm, deb, eot, epub, exe, gz, lz, lzo, lz4,
nes, pdf, ps, rar, rpm, rtf, sqlite, swf, tar, xz, zip, Z, 7z.
- Font: otf, ttf, woff, woff2.
- Application: wasm.
.
This package contains the filetype module for Python 3 and an executable.