Yamlable

Latest version: v1.1.1

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

Scan your dependencies

Page 2 of 3

0.7.1

Fixed the file opening mode in `dump_yaml` method when a file path is provided as argument.

0.7.0

It should now be easier to define an abstract yaml-able class for several object types.
Deprecated `NONE_IGNORE_CHECKS`. Fixes [7](https://github.com/smarie/python-yamlable/issues/7)

0.6.0

Fixes [6](https://github.com/smarie/python-yamlable/issues/6).

0.5.0 - Python 2.7 support

Fixes [5](https://github.com/smarie/python-yamlable/issues/5)

0.4.0

`YamlCodec` completed (fixes [4](https://github.com/smarie/python-yamlable/issues/4)):
- `YamlCodec.decode_yamlable` renamed `decode` and `YamlCodec.encode_yamlable` renamed `encode`
- added some checks in `YamlCodec.encode` to help users implement `to_yaml_dict` correctly
- fixed bug in `register_with_pyyaml`: the wrong decoding method was registered
- `YamlCodec.create_from_yaml_dict` renamed `from_yaml_dict` for consistency
- added tests and usage documentation

Renamed internal `AbstractYamlObject` methods with dunder (fixes [3](https://github.com/smarie/python-yamlable/issues/3)):
- `from_yaml_dict` becomes `__from_yaml_dict__`
- and `to_yaml_dict` become `__to_yaml_dict__`
Legacy names will remain supported for a while, added a tet to check that.

0.3.1

* Filled `yaml_info` docstring.
* fixed class decoding so that it is robust to errors happening with faulty classes. This fixes [2](https://github.com/smarie/python-yamlable/issues/2)
* improved error message when decoding failed.

0.3.0

* Added the `safe` parameter to all dumping and loading methods `dump_yaml`, `dumps_yaml`, `load_yaml`, `loads_yaml`.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.