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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| py_file_type-0.1.0.tar.gz | 391.7 kB | Without provenance | Details for py_file_type-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_file_type-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for py_file_type-0.1.0-py3-none-any.whl |
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
|
Security for py-file-type 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.