python-filetype
Port variant py38
Summary Infer file and MIME type of file or buffer (PY38)
Package version 1.0.8
Homepage https://github.com/h2non/filetype.py
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py39
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 26 SEP 2021, 03:42:31 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)
PY38 ON Build using Python 3.8 PY39 OFF Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py38
autoselect-python:single:standard
Build and Runtime python38:single:standard
Download groups
main mirror://PYPIWHL/ab/10/81f21c5ff8ba74031ebd158a2d64a03a03e228ccc4a3f04a835831c5f90b
Distribution File Information
eb974519c5dbbd678a9fbfb5e2616105c6768ee9c01ce4a4ecaefc141e50d5e5 16579 filetype-1.0.8-py2.py3-none-any.whl
Ports that require python-filetype:py38
python-eyed3:py38 Python audio data toolkit (ID3 and MP3) (PY38)