M Filetypes Test 0.1.11 | GitLocker.com Product

m-filetypes-test 0.1.11

Last updated:

0 purchases

m-filetypes-test 0.1.11 Image
m-filetypes-test 0.1.11 Images
Add to Cart

Description:

mfiletypestest 0.1.11

Thư viện kiểm tra file type.
Cài đặt:
$ pip3 install m-filetype

Link chữ ký: https://en.wikipedia.org/wiki/List_of_file_signatures
Sử dụng
from mobio.sdks.filetype.file import File
from mobio.sdks.filetype.common import ExtensionImage

File.check_filetype_by_file_extensions(
file_binary=file, # Check filetype của định dạng file binary.Mặc định None
file_path=file_path, # Check filetype của path file
extensions=[ExtensionImage.PNG] # Danh sách extension cần check.
)

Lấy extensions support

Extension Image:

from mobio.sdks.filetype.common import ExtensionImage
ExtensionImage.LIST_EXTENSION_SUPPORTED


Extension Document:

from mobio.sdks.filetype.common import ExtensionDocument
ExtensionDocument.LIST_EXTENSION_SUPPORTED


Extension Audio:

from mobio.sdks.filetype.common import ExtensionAudio
ExtensionAudio.LIST_EXTENSION_SUPPORTED

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.