YAFOWIL - YAML/JSON-parser for widget trees.
Project description
Write YAFOWIL forms in YAML or JSON notation.
Documentation
Detailed documentation for describing YAFOWIL forms with YAML can be found here
Source Code
The sources are in a GIT DVCS with its main branches at github.
We’d be happy to see many forks and pull-requests ;).
Contributors
Robert Niederreiter
Attila Olah
Jens W. Klein
Changes
2.0 (2022-12-05)
Fix parsing of builders and display_renderers in custom parts. [rnix]
Fix signature of yafowil.yaml.tests.test_vocab. Property callbacks always gets passed widget and data as of yafowil 3.0.0. [rnix]
Parse values of attributes (data-Attributes) if type() is dict. HTML5 Data-Attributes with i18n or callables are possible now. [2silver]
Breaking changes:
Add python: expressions. Needed for cases where property callbacks not accept widget and data keyword arguments, e.g. datatype. This is necessary because callable_value function in yafowil 3.0 no longer calls callable without arguments as fallback. [rnix]
1.3.1 (2020-07-09)
Pass yaml.SafeLoader loader to yaml.load to prevent arbitrary code execution. [rnix]
Cleanup. [rnix]
1.3 (2018-07-16)
Python 3 compatibility. [rnix]
Convert doctests to unittests. [rnix]
1.2 (2014-11-13)
Feature: Support definitions written in JSON too. Since YAML and JSON are 100% comaptible exact the same structure applies. [jensens, 2014-11-13]
1.1
Widget definitions in yaml may point to other yaml files for form nesting using nest property. [rnix, 2014-07-18]
1.0.5
Fix test coverage. [rnix, jensens, 2014-04-30]
1.0.4
allow default for i18n messages in format: i18n:message_id:Default Value [rnix, jensens, 2014-02-14]
1.0.3
test coverage, documentation [rnix, jensens]
1.0.2
accidentially set zip_safe=True which is not. Set to Fasle now. [jensens, 2012-03-19]
1.0.1
Adopt test for select blueprint change. [rnix, 2011-12-18]
Fix automatic name setting for recursive compounds. [rnix, 2011-09-30]
1.0
Adopt to yafowil 1.1. [rnix, 2011-07-07]
Extend parse_from_YAML resolving package path instead of excepting. absolute or relative file path [rnix, 2011-07-07]
0.9.1
Add i18n support. [rnix, 2011-06-04]
Fix bug where expression evaluation was not reached. [rnix, 2011-06-04]
Adopt tests for form novalidate property. [rnix, 2011-05-23]
0.9
Make it work. [aatis, rnix]
License
Copyright (c) 2010-2021, BlueDynamics Alliance, Austria, Germany, Switzerland Copyright (c) 2021-2022, Yafowil Contributors All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for yafowil.yaml-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d754fb7e32e0eac7faf3a124774a88c7ddd645b81626730296affffeeee5b5 |
|
MD5 | a7ed8dca5d9401981f9c3fd2a8c5964f |
|
BLAKE2b-256 | 91444fa060cbdd93f98924761d44dc9f14d5f04d6bda618e13bd0e7630411eb2 |