Skip to main content

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


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)

Uploaded Source

Built Distribution

py_file_type-0.1.0-py3-none-any.whl (815.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page