Python File Verifier
About File Verifier
File Verifier is file validate library for python. It provides method to verify local and upload file
Install
$ pip install file-verifier
Usage
from file_verifier.mime.magic_async_mime import MagicAsyncValidatorMime
from file_verifier.size.basic_async_size import BaseAsyncValidatorSize
from file_verifier.type.filetype_type import FiletypeValidatorType
from file_verifier.convertor.pillow_convertor import PillowConvertor
from file_verifier.file_validator import FileValidator
mime_validator = MagicAsyncValidatorMime(acceptable_mimes=["image/jpeg"])
size_validator = BaseAsyncValidatorSize(max_upload_file_size=1024 * 1024)
type_validator = FiletypeValidatorType(acceptable_types=["image"])
file_convertor = PillowConvertor(acceptable_mimes=["image/jpeg"])
obj_validator = FileValidator(mime_validator, size_validator, type_validator, file_convertor)
obj_validator.validate_file("/tmp/hello.txt")
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Metadata
Release files for file-verifier 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| file-verifier-0.0.0.tar.gz | 6.5 kB | Without provenance | Details for file-verifier-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| file_verifier-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for file_verifier-0.0.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / file-verifier-0.0.0.tar.gz
| Download URL | file-verifier-0.0.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d005ffa2843e6660486f7df5808821316df591e7fc1e771309c8306a1a0d336
|
|
BLAKE2b-256 checksum How to use checksums |
c6b18d3e5845462a08c8b3520ae5d9eca7127e5b199580d8c8767c51524432b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / file_verifier-0.0.0-py3-none-any.whl
| Download URL | file_verifier-0.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ecf1195ef203cb77b7789e242301d55b2d96fd2fd1ecfbe5fd8013d756f9bff
|
|
BLAKE2b-256 checksum How to use checksums |
3065733c15e1a9b34196fc5dccf0f05d61fa6df262ba0ce0bb3c77a46b34850c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for file-verifier 0.0.0
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.