Tomlantic

Latest version: v0.2.1

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

Scan your dependencies

0.2.1

another quality of life update!

changes

- update docstrings and api reference for toml get and set functions to mention the document argument (3)
fixed by vlshields in https://github.com/markjoshwel/tomlantic/pull/7

new contributors

- thanks a bunch to vlshields for 7!

https://github.com/markjoshwel/tomlantic/compare/v0.2.0...v0.2.1

0.2.0

moar quality of life methods!

additions

- added `get_toml_field` and `set_toml_field` for programatically handling toml documents

- added `ModelBoundTOML.get_field` and `ModelBoundTOML.set_field` for programatically handling ModelBoundTOMLs

- added `ModelBoundTOML.difference_between_document` to see what fields have been changed between the 'outgoing' ModelBoundTOML and the 'incoming' TOMLDocument

- for this, a new namedtuple class, `tomlantic.Differences` was made

- added `ModelBoundTOML.load_from_document` to load in changes from an 'incoming' TOMLDocument
useful for loading in a newer configuration file from disk or something

see the [api details](https://github.com/markjoshwel/tomlantic?tab=readme-ov-file#api-reference) for details!

https://github.com/markjoshwel/tomlantic/compare/v0.1.3...v0.2.0

0.1.3

changes

- improved TOMLBaseSingleError docstring and add .msg attribute
maps closer to pydantic errors; should make more sense for devs coming from pydantic

https://github.com/markjoshwel/tomlantic/compare/v0.1.2...v0.1.3

0.1.2

changes

- implement `__repr__` for ModelBoundTOML

https://github.com/markjoshwel/tomlantic/compare/v0.1.1...v0.1.2

0.1.1

changes

- bumped down tomlkit and pydantic to their lowest supported version for tomlantic to work

https://github.com/markjoshwel/tomlantic/compare/v0.1.0...v0.1.1

0.1.0

first working version!

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.