Skip to main content

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'
>>> 

Release files for filemime 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filemime 0.0.3
File Size Uploaded
filemime-0.0.3.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for filemime 0.0.3
File Interpreter ABI Platform
filemime-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 MB

Release files / filemime-0.0.3.tar.gz

Download URL filemime-0.0.3.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
aa80d1a5703c35a829de6d7dd2e059da2339a88a3f18deb1fd3d8cdcb207f325
BLAKE2b-256 checksum
How to use checksums
81ed17b3279f44940a62efb012ee6a9e22098c82f2acd78eaa592bed86eadb7c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / filemime-0.0.3-py3-none-any.whl

Download URL filemime-0.0.3-py3-none-any.whl
Size 3.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ce585cab35ac9ca8dd4fc369e9d8800fe6a305dce90b851b29d6de55195bb1d8
BLAKE2b-256 checksum
How to use checksums
c248624d85ae9d5a51de348f54e83f017ffbcfbeb8705b24e7cba8ba5e76118f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page