Mobio Filetype Libs
Project description
Thư viện kiểm tra file type.
Cài đặt:
$ pip3 install m-filetype
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
m-filetypes-0.1.4.tar.gz
(18.8 kB
view details)
File details
Details for the file m-filetypes-0.1.4.tar.gz
.
File metadata
- Download URL: m-filetypes-0.1.4.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b5dc38f58217427787bbd5efd830259c91991cbf12dfdab34f26e14a99f7a92 |
|
MD5 | 1077bc6a3c06c445b29875e7bd39da0f |
|
BLAKE2b-256 | c074dce2babaf53cb294c39c4953a88b61e0ccb3bf72c6cedae996576c53b649 |