Skip to main content

A library for validating files in Python

Project description

File Validator

https://img.shields.io/pypi/v/file_validator.svg Documentation Status made with python https://badgen.net/pypi/license/pip/ https://ci.appveyor.com/api/projects/status/v8e1kr94a0259uw6?svg=true https://codecov.io/gh/rzashakeri/file_validator/branch/master/graph/badge.svg?token=13ZVSJWH8M https://raw.githubusercontent.com/rzashakeri/file_validator/master/file_validator.png

Features

If you are looking for a safe way to validate your files, the file validator library will do this for you, this library also supports Django.

  • File validation using the filetype library

  • File validation using the mimetypes library

  • File validation simultaneously with all three libraries

  • Supporting for all mimes

  • Functions to get mimes and file extensions

Documentation

  • Read the document for more information

Credits

This package was created with RezaShakeri

History

0.0.1 (2022-08-04)

  • First release on PyPI.

0.0.2 (2022-08-06)

  • Added django file validator

0.0.3 (2022-08-07)

  • Added File Validator With File Type Library

  • Added File Validator With Python Magic Library

0.0.4 (2022-08-07)

  • Added File Validator

0.0.5 (2022-08-08)

  • Added validator for pure python project

  • Added get_mime_type_with_python_magic function

  • Added get_extension_with_filetype_lib function

  • Added get_mime_type_with_filetype_lib function

  • Added file_validator_with_filetype_lib function

0.0.6 (2022-08-10)

  • Refactoring project files

0.0.7 (2022-08-10)

  • Adding Test To Project (file validator for pure python)

  • Deleting get_mime_type_with_python_magic

  • Deleting get_extension_with_filetype_lib

  • Deleting get_mime_type_with_filetype_lib

0.0.8 (2022-08-11)

  • Adding error message function for customization error messages

  • Adding constants.py

0.0.9 (2022-08-11)

  • Refactoring error message function

0.1.0 (2022-08-12)

  • Fixing Minor Bug

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_validator-0.1.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page