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-test 0.1.11

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-test 0.1.11
File Size Uploaded Provenance
m-filetypes-test-0.1.11.tar.gz 19.9 kB Without provenance Details

Release files / m-filetypes-test-0.1.11.tar.gz

Download URL m-filetypes-test-0.1.11.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e3640591a131df1777225c1bfea4911dbda732ac03efbc1167e709f138d0ec00
BLAKE2b-256 checksum
How to use checksums
11d02d4b0c2fb6d708cdc67a440aa1d001fe166a3e1eba0fad374fb7ce0af455
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-test 0.1.11

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