Yafowil

Latest version: v3.1.1

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

Scan your dependencies

Page 1 of 7

3.1.2

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

- Nothing changed yet.

3.1.1

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

- Add ``radio_class`` and ``radio_input_class`` properties to ``yafowil.file``.
[lenadax]

3.1.0

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

- Refactor datatype conversion. Datatype related extractors and utils are
contained in ``yafowil.datatype`` now. Fix datatype conversion for ``bytes``
type.
[rnix]

- Split up ``yafowil.common`` module [rnix]

- Move ``button`` and ``submit`` blueprints to ``yafowil.button``.

- Move ``checkbox`` blueprint to ``yafowil.checkbox``.

- Move ``email`` blueprint to ``yafowil.email``.

- Move ``field``, ``label``, ``help`` and ``error`` blueprints to ``yafowil.field``.

- Move ``file`` blueprint to ``yafowil.file``.

- Move ``hidden`` blueprint to ``yafowil.hidden``.

- Move ``lines`` blueprint to ``yafowil.lines``.

- Move ``number`` blueprint to ``yafowil.number``.

- Move ``password`` blueprint to ``yafowil.password``.

- Move ``proxy`` blueprint to ``yafowil.proxy``.

- Move ``search`` blueprint to ``yafowil.search``.

- Move ``select`` blueprint to ``yafowil.select``.

- Move ``tag`` blueprint to ``yafowil.tag``.

- Move ``text`` blueprint to ``yafowil.text``.

- Move ``textarea`` blueprint to ``yafowil.textarea``.

- Move ``url`` blueprint to ``yafowil.url``.

- Tests work with pytest.
[rnix]

3.0.1

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

- File extractor raises an ``ExtractionError`` if file action is ``replace``
but no file is uploaded instead of silently changing the action to ``keep``.
[rnix]

- Document ``vocabulary`` property of ``file`` blueprint.
[rnix]

- Add ``yafowil.common.mimetype_extractor`` and use in ``file`` blueprint.
[rnix]

- Add runtime data path to error message if persist writer not found.
[rnix]

3.0

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

- Python 3.7+ support.
[rnix, jensens]

- Try to translate plain error message in ``error_renderer`` in case of no
``message_tag`` defined.
[jensens]

- Add ``valid_class`` and ``valid_class_default`` as opposite of ``error_class``
and ``error_class_default`` to mark extracted values as valid.
[jensens]

- Add ``button`` blueprint.
[jensens]

**Internals:**

- Remove usage of ``Nodespaces`` behavior.
[rnix]

- Replace deprecated use of ``Nodify`` by ``MappingNode``.
[rnix]

- Replace deprecated use of ``NodeChildValidate`` by ``MappingConstraints``.
[rnix]

- Replace deprecated use of ``Adopt`` by ``MappingAdopt``.
[rnix]

- Remove ``NodeChildValidate`` and ``Adopt`` behaviors from ``WidgetAttributes``.
[rnix]

- Add ``push_state`` and ``pop_state`` to factory. Used in ``YafowilTestCase``
for saving and restoring factory state. This is needed when yafowil tests run
in compound with foreign tests to avoid breaking possible custom factory
configuration.
[rnix]

**Breaking changes:**

- Remove B/C behavior of ``callable_value`` function. No longer calls callable
without parameters as fallback. Always expect widget and data arguments in
signature.
[jensens]

- ``datatype`` converters now always gets passed the raw extracted value only.
Prior to removing B/C behavior from ``callable_value`` it was possible to use
callables taking widget and data as arguments returning the real converter
callable. This behavior was never intended to be supported for datatype
conversion.
[jensens]

2.3.4

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

- Rename deprecated ``WidgetAttributes.allow_non_node_childs`` to
``allow_non_node_children``.
[rnix]

Page 1 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.