Covador

Latest version: v0.10.2

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

Scan your dependencies

Page 4 of 5

0.9.10

=====

* [Fix] UnicodeDecodeError in parse_qs under python3.

0.9.8

=====

* [Break] rename ``t_date``, ``t_time``, ``t_datetime`` into ``Date``, ``Time``,
``DateTime`` respectively.

* [Feature] ``aiohttp.rparams`` now uses ``request.match_info``.

0.9.7

=====

* [Break] ``length`` validator with single argument asumes min=max, so
``length(3) is equivalent for length(3, 3)``.

* [Feature] ``numbers`` validator which can extract number sequences from
strings. Can be used to extract digits from phone numbers.

0.9.6

=====

* [Feature] Naive ``t_datetime``, ``t_date`` and ``t_time`` validators.
Completely timezone-unaware. Suitable only for simple cases when only
a local time is needed. And you always can apply pytz for these values.

* [Feature] ``timestamp`` validator to deal with unix timestamps in seconds
and milliseconds and treat it like UTC and local values.

* [Feature] Error handler wrapper allows to override default error handlers
without touching decorators:

.. code:: python

from covador import flask

flask.error_hanler.set
def custom_error_handler(ctx):
print ctx.exception
ctx.reraise() reraise exception with original traceback

0.9.5

=====

* [Break] Changed argument order for ``item``. ``default`` is on a second
position now, so one can use ``opt(int, 0)`` instead of ``opt(int, default=0)``.
Default values are more common case then custom source keys.

* [Feature] ``oneof`` validator to select suitable alternative.

* [Feature] ``dest`` and ``src`` (an alias for ``source_key``) parameters for ``item``,
it controls a destination and a source key value for a Map.

* [Feature] ``dpass`` decorator helper allows to use complex expression inline.

* [Feature] ``_`` keyword argument for schema constructor to attach a validation chain
to a resulted schema. Can be used instead of ``dpass``.

* [Feature] Public properties for built-in validation exceptions.

* [Fix] Fixed ``covador.aiohttp.params`` decorator.

* [Fix] Incorrect schema for ``rparams`` for all supported frameworks.

0.9.1

=====

* [Feature] Exception hierarchy for built-in checkers.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.