Wrapper for python-magic that includes necessary bin files.
Project description
Py File Type
A wrapper for python-magic that includes python-magic-bin files.
Description
This was made duo to a file conflict problem happening when trying to install python-magic and python-magic-bin.
Installing
pip install py-file-type
Usage
Works exactly like python-magic
import py_file_type as magic
file_type = magic.from_file('video.mp4', mime=True)
print(file_type) # -> video/mp4
Authors
Riadh Azzoun - @riad-azz
License
This project is licensed under the [MIT] License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_file_type-0.1.0.tar.gz
(391.7 kB
view hashes)
Built Distribution
py_file_type-0.1.0-py3-none-any.whl
(815.3 kB
view hashes)
Close
Hashes for py_file_type-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91fbdad61f13ba41d374b7c3ded2b1cea2971e3ecdc0e5086b12648a02a1b5a |
|
MD5 | 9e82a6d4c2a5d790fe12b25f61150a95 |
|
BLAKE2b-256 | 14e90c987ad71699468da96959b9d3bd5ecabca0d37fba0d222cd0c421a99e9d |