Skip to main content

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

Metadata

Release files for m-filetypes 0.1.9

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

Source distribution (sdist)

Source distribution for m-filetypes 0.1.9
File Size Uploaded Provenance
m-filetypes-0.1.9.tar.gz 19.9 kB Without provenance Details

Release files / m-filetypes-0.1.9.tar.gz

Download URL m-filetypes-0.1.9.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3f25f902a65f92a1502f6dda42e4e504ea106a11765463c62b749c8d6c52d0c8
BLAKE2b-256 checksum
How to use checksums
697df4a18a63f0cf05962bd7e3220fa2a8c3aa220cb46d8cb274bf4bfbcd0278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.17

Security for m-filetypes 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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