Skip to main content

this package use finds all types of file extension or mime types.

Project description

filemime

Code style: black PyPI Downloads

Python package to infer file type and MIME

INSTALL PACKAGE

pip install filemime

Features

  • Provides file extension and MIME type
  • File discovery by extension or MIME type
  • Fast, even processing large files
  • Cross-platform file recognition

IMPORT PACKAGE

All type of file extension and mimetype support

Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on windows
Type "help", "copyright", "credits" or "license" for more information.
from filemime import filemime
obj = filemime()

LOAD FILE

>>> obj.load_file("D:\\photos\\IMG_4917.JPG")
"""JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=12, 
    manufacturer=Canon, model=Canon EOS 1500D, orientation=lower-left, xresolution=196, 
    yresolution=204, resolutionunit=2, datetime=2021:10:16 18:03:06], baseline, precision 8, 
    6000x4000, frames 3"""

MIME TYPE

>>> obj.load_file("D:\\photos\\IMG_4917.JPG",mimeType=True)
'image/jpeg'
>>> 

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

filemime-0.0.3.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

filemime-0.0.3-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file filemime-0.0.3.tar.gz.

File metadata

  • Download URL: filemime-0.0.3.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for filemime-0.0.3.tar.gz
Algorithm Hash digest
SHA256 aa80d1a5703c35a829de6d7dd2e059da2339a88a3f18deb1fd3d8cdcb207f325
MD5 65c5a233734caa6f440725cad92c3c86
BLAKE2b-256 81ed17b3279f44940a62efb012ee6a9e22098c82f2acd78eaa592bed86eadb7c

See more details on using hashes here.

File details

Details for the file filemime-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: filemime-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for filemime-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce585cab35ac9ca8dd4fc369e9d8800fe6a305dce90b851b29d6de55195bb1d8
MD5 eb2eef4ef19a0ceacf43d0d50aa1493d
BLAKE2b-256 c248624d85ae9d5a51de348f54e83f017ffbcfbeb8705b24e7cba8ba5e76118f

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