filetype.py 1.2.0-1 source package in Ubuntu
Changelog
filetype.py (1.2.0-1) unstable; urgency=medium * New upstream version 1.2.0 * d/control: bump Standards-Version, no changes needed -- Jérôme Charaoui <email address hidden> Sat, 07 Jan 2023 11:36:33 -0500
Upload details
- Uploaded by:
- Debian Python Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Python Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | misc | |
Noble | release | universe | misc | |
Mantic | release | universe | misc | |
Lunar | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
filetype.py_1.2.0-1.dsc | 1.4 KiB | 561680b18e8f322b7997b0ffa90834a428e73342c1d755c2205779124271d726 |
filetype.py_1.2.0.orig.tar.gz | 975.4 KiB | 99509dd057a8f9619093b2a0e08cc3f302a682e0fecbfe6ca31f8142dcaf1da7 |
filetype.py_1.2.0-1.debian.tar.xz | 3.9 KiB | fe155ee7d88b1039a72d42dc7ea3c2589f186a57d89a8f7e208296b04b1e60ca |
Available diffs
- diff from 1.0.10-2 to 1.2.0-1 (11.0 KiB)
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.