Skip to content

Releases: markjoshwel/tomlantic

v0.2.1

11 Mar 17:02
Compare
Choose a tag to compare

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 #7

new contributors

v0.2.0...v0.2.1

v0.2.0

09 Mar 18:15
Compare
Choose a tag to compare

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 for details!

v0.1.3...v0.2.0

v0.1.3

04 Mar 17:44
Compare
Choose a tag to compare

changes

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

v0.1.2...v0.1.3

v0.1.2

04 Mar 07:11
Compare
Choose a tag to compare

changes

  • implement __repr__ for ModelBoundTOML

v0.1.1...v0.1.2

v0.1.1

03 Mar 00:54
Compare
Choose a tag to compare

changes

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

v0.1.0...v0.1.1

v0.1.0

03 Mar 00:33
Compare
Choose a tag to compare

first working version!