filemime-0.0.3
توضیحات
this package use finds all types of file extension or mime types.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | filemime-0.0.3 |
| نام | filemime |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | T.THAVASI |
| ایمیل نویسنده | ganeshanthavasigti1032000@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/filemime/ |
| مجوز | MIT |
# filemime
[](https://github.com/THAVASIGTI/filemime)
[](https://pypi.org/project/filemime)
[](https://pepy.tech/project/filemime)
Python package to infer file type and MIME
## INSTALL PACKAGE
``` console
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
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
``` python
>>> 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
``` python
>>> obj.load_file("D:\\photos\\IMG_4917.JPG",mimeType=True)
'image/jpeg'
>>>
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl filemime-0.0.3:
pip install filemime-0.0.3.whl
نصب پکیج tar.gz filemime-0.0.3:
pip install filemime-0.0.3.tar.gz