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
Release files for py-file-type 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_file_type-0.1.0.tar.gz | 391.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_file_type-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / py_file_type-0.1.0.tar.gz
| Download URL | py_file_type-0.1.0.tar.gz |
|---|---|
| Size | 391.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26c3129103ca6b4d4c0ba4dfa86a9cc09bf287c0ec725ef8c296bc76aa054cfd
|
|
BLAKE2b-256 checksum How to use checksums |
481fc4cdef9f81c3549dafea94b71efc0acaa6fa8c51fcd2d99b89761ab585b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / py_file_type-0.1.0-py3-none-any.whl
| Download URL | py_file_type-0.1.0-py3-none-any.whl |
|---|---|
| Size | 815.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f91fbdad61f13ba41d374b7c3ded2b1cea2971e3ecdc0e5086b12648a02a1b5a
|
|
BLAKE2b-256 checksum How to use checksums |
14e90c987ad71699468da96959b9d3bd5ecabca0d37fba0d222cd0c421a99e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|