python-filetype
Port variant py37
Summary Infer file and MIME type of file or buffer (PY37)
Package version 1.0.7
Homepage https://github.com/h2non/filetype.py
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py38
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 29 APR 2020, 19:50:27 UTC
Port created 05 JAN 2020, 01:27:50 UTC
Subpackage Descriptions
single filetype.py |Build Status| |PyPI| |Pyversions| |API| ==================================================== Small and dependency free `Python`_ package to infer file type and MIME type checking the `magic numbers`_ signature of a file or buffer. 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 Installation ------------ :: pip install filetype API --- See `annotated API reference`_. Examples -------- Simple file type checking ^^^^^^^^^^^^^^^^^^^^^^^^^
Configuration Switches (platform-specific settings discarded)
PY37 ON Build using Python 3.7 PY38 OFF Build using Python 3.8
Package Dependencies by Type
Build and Runtime python37:single:standard
python-setuptools:single:py37
Download groups
main mirror://PYPI/f/filetype
Distribution File Information
da393ece8d98b47edf2dd5a85a2c8733e44b769e32c71af4cd96ed8d38d96aa7 666636 filetype-1.0.7.tar.gz
Ports that require python-filetype:py37
python-eyeD3:py37 Python audio data toolkit (ID3 and MP3) (PY37)