Validator-collection

Latest version: v1.5.0

Safety actively analyzes 688917 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

1.3.0

============================================

* 18: Upgraded ``requests`` requirement to 2.20.1
* 17: Added ``validators.json()`` with support for JSON Schema validation.
* 17: Added ``checkers.is_json()`` with support for checking against JSON Schema.
* Added Python 3.7 to the Travis CI Test Matrix.

-----------

1.2.0

==========================================

Features Added
----------------

* 14: Added ``coerce_value`` argument to ``validators.date()``, ``validators.datetime()``,
and ``validators.time()``.

Bugs Fixed
------------

* 11: Removed legacy print statements.
* 13: ``checkers.is_time()``, ``checkers.is_date()``, and ``checkers.is_datetime()``
no longer return false positives

1.1.0

==========================================

Features Added
----------------

* Added ``validators.domain()`` and ``checkers.is_domain()`` support with unit tests.
* 8: Added more verbose exceptions while retaining backwards-compatability with standard
library exceptions.
* 6: Made it possible to disable validators by adding the validator name to the
``VALIDATORS_DISABLED`` environment variable.
* 6: Made it possible to disable checkers by adding the checker name to the
``CHECKERS_DISABLED`` environment variable.
* 6: Made it possible to force a validator or checker to run (even if disabled)
by passing it a ``force_run = True`` keyword argument.
* 5: Added ``validators.readable()`` and ``checkers.is_readable()`` support to
validate whether a file (path) is readable.
* 4: Added ``validators.writeable()`` and ``checkers.is_writeable()`` support to
validate whether a file (path) is writeable. Only works on Linux, by design.
* 9: Added ``validators.executable()`` and ``checkers.is_executable()`` support
to validate whether a file is executable. Only works on Linux, by design.

Bugs Fixed
------------

* 7: Refactored ``validators.email()`` to more-comprehensively validate email
addresses in compliance with RFC 5322.

Testing
-------------

* 6: Added unit tests for disabling validators and checkers based on the
``VALIDATORS_DISABLED`` and ``CHECKERS_DISABLED`` environment variables, with
support for the ``force_run = True`` override.
* 7: Added more extensive email address cases to test compliance with RFC 5322.
* Added unit tests for ``validators.domain()`` and ``checkers.is_domain()``.
* 5: Added unit tests for ``validators.readable()`` and ``checkers.is_readable()``
that work on the Linux platform. Missing unit tests on Windows.
* 4: Added unit tests for ``validators.writeable()`` and ``checkers.is_writeable()``.
* 9: Added unit tests for ``validators.executable()`` and ``checkers.is_executable()``.

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

* Added ``CHANGES.rst``.
* 7: Added additional detail to ``validators.email()`` documentation.
* 8: Added detailed exception / error handling documentation.
* 8: Updated validator error documentation.
* 6: Added documentation on disabling validators and checkers.
* 5: Added documentation for ``validators.readable()`` and ``checkers.is_readable()``.
* 4: Added documentation for ``validators.writeable()`` and ``checkers.is_writeable()``.
* 9: Added documentation for ``validators.executable()`` and ``checkers.is_executable()``.

----------------

1.0.0

=========================================

* First public release

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.