Metadata-Version: 2.1
Name: file-validator
Version: 0.0.8
Summary: A library for validating files in Python
Home-page: https://github.com/rzashakeri/file_validator
Author: Reza Shakeri
Author-email: rzashakeri@outlook.com
License: MIT license
Keywords: file_validator
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
License-File: LICENSE
License-File: AUTHORS.rst

==============
File Validator
==============


.. image:: https://img.shields.io/pypi/v/file_validator.svg
        :target: https://pypi.python.org/pypi/file_validator

.. image:: https://readthedocs.org/projects/file-validator/badge/?version=latest
        :target: https://file-validator.readthedocs.io/en/latest/?version=latest
        :alt: Documentation Status
.. image:: https://img.shields.io/badge/Made%20with-Python-1f425f.svg
        :target: https://python.org
        :alt: made with python
.. image:: https://badgen.net/pypi/license/pip/
        :target: https://badgen.net/pypi/license/pip/
.. image:: https://ci.appveyor.com/api/projects/status/v8e1kr94a0259uw6?svg=true
        :target: https://ci.appveyor.com/api/projects/status/v8e1kr94a0259uw6?svg=true
.. image:: https://codecov.io/gh/rzashakeri/file_validator/branch/master/graph/badge.svg?token=13ZVSJWH8M
        :target: https://codecov.io/gh/rzashakeri/file_validator
.. image:: https://raw.githubusercontent.com/rzashakeri/file_validator/master/file_validator.png
        :target: 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

.. _filetype: https://github.com/h2non/filetype.py

* File validation using the `python-magic`_ library

.. _python-magic: https://github.com/ahupp/python-magic

* File validation using the `mimetypes`_ library

.. _mimetypes: https://docs.python.org/3/library/mimetypes.html

* File validation simultaneously with all three libraries

.. | This is a line |

* Supporting for all `mimes`_

.. _mimes: https://www.iana.org/assignments/media-types/media-types.xhtml

* Functions to get mimes and file extensions

Documentation
--------------

* Read the `document`_ for more information

.. _document: https://file-validator.readthedocs.io

Credits
-------

This package was created with RezaShakeri_

.. _RezaShakeri: https://github.com/rzashakeri


=======
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


