Skip to main content

Thư viện kiểm tra file type.

Cài đặt:

 $ pip3 install m-validate-import-file

Sử dụng

from mobio.libs.validate_import_file.validate import ValidateImportFile

result_validate = ValidateImportFile(
    number_row_limit=300000,
    capacity_limit=10485760 # 10MB
).file_upload(
    file=file
)

##
1. Lỗi định dạng file không đúng
result_validate = {
    "status": False,
    "reason": "fail_validate_file_type",
}

2. Lỗi file có số dòng vượt quá limit

result_validate = {
    "status": False,
    "reason": "fail_validate_file_number_row",
}

3. Lỗi file có dung lượng vượt quá config

result_validate = {
    "status": False,
    "reason": "fail_validate_file_capacity",
}

Metadata

Release files for m-validate-import-file-test 0.0.10

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-validate-import-file-test 0.0.10
File Size Uploaded Provenance
m_validate_import_file_test-0.0.10.tar.gz 7.2 kB Without provenance Details

Release files / m_validate_import_file_test-0.0.10.tar.gz

Download URL m_validate_import_file_test-0.0.10.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2cfff99074469dba54cd59fa889fd913f43f2e291567f4c528a48a56ffb6471e
BLAKE2b-256 checksum
How to use checksums
38f46d7656c6e3c424ca6c6a3a226f43aa3722f0fb5f41dd0fbba669b929d8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Security for m-validate-import-file-test 0.0.10

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