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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file py_file_type-0.1.0.tar.gz.

File metadata

  • Download URL: py_file_type-0.1.0.tar.gz
  • Upload date:
  • Size: 391.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for py_file_type-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26c3129103ca6b4d4c0ba4dfa86a9cc09bf287c0ec725ef8c296bc76aa054cfd
MD5 9dabb18d32a450c1525cf3c67bd47189
BLAKE2b-256 481fc4cdef9f81c3549dafea94b71efc0acaa6fa8c51fcd2d99b89761ab585b8

See more details on using hashes here.

File details

Details for the file py_file_type-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_file_type-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 815.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for py_file_type-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f91fbdad61f13ba41d374b7c3ded2b1cea2971e3ecdc0e5086b12648a02a1b5a
MD5 9e82a6d4c2a5d790fe12b25f61150a95
BLAKE2b-256 14e90c987ad71699468da96959b9d3bd5ecabca0d37fba0d222cd0c421a99e9d

See more details on using hashes here.

Supported by

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