Skip to content

Releases: aphp/confit

v0.5.2

11 Oct 23:52
Compare
Choose a tag to compare

Changelog

Changed

  • Keys with dots (or path-like keys in general) will be escaped when serializing a config
{"section": {"deep.key": "ok"}}

will be serialized as

[section]
'deep.key' = "ok"

What's Changed

Full Changelog: v0.5.1...v0.5.2

v0.5.1

26 Sep 07:20
Compare
Choose a tag to compare

Changelog

  • Use context instead of func for set_seed to allow
    with set_seed(42):
        # do stuff
        num = random.randint(0, 100)
  • Add auto-reload plugin to work with confit wrapped functions in notebooks

Pull Requests

Full Changelog: v0.5.0...v0.5.1

v0.5.0

15 Sep 08:15
Compare
Choose a tag to compare

What's Changed

Added

  • deprecated parameter to register an object under multiple names with deprecation warnings

Fixed

  • Stop interpreting type errors as validation errors when executing a validated function

Pull Requests

Full Changelog: v0.4.3...v0.5.0

v0.4.3

31 Aug 16:28
Compare
Choose a tag to compare

What's Changed

Fixed

  • Save var kwargs as separate fields

Pull Requests

Full Changelog: v0.4.2...v0.4.3

v0.4.2

31 Aug 08:31
Compare
Choose a tag to compare

What's Changed

Fixed

  • Re-enable extra/duplicate arg errors and uniformize between pydantic v1/v2
  • Add pydantic-core dependency for jsonable types during dump

Pull Requests

Full Changelog: v0.4.1...v0.4.2

v0.4.1

29 Aug 17:03
Compare
Choose a tag to compare

What's changed

Fixed

  • Use pydantic v2 context error only if it is an exception

Full Changelog: v0.4.0...v0.4.1

v0.4.0

29 Aug 15:26
Compare
Choose a tag to compare

What's new

Added

  • Improve validation errors merging and display. By default, confit related frames and exception causes
    in the traceback are hidden.
  • Show inner-confit traceback and exception chains if CONFIT_DEBUG env var is true
  • Support for both Pydantic v2 and v1

Fixed

  • If the seed is given a default value in CLI, it can now be used by confit when no seed is given

Pull Requests

Full Changelog: v0.3.0...v0.4.0

v0.3.0

25 Aug 16:22
Compare
Choose a tag to compare

What's Changed

  • Allow keyword only parameters
  • Avoid import of all entry points by catalogue during failed registry lookup
  • Fix bug in serialization, leading to mixed config fields

Full Changelog: v0.2.1...v0.3.0

v0.2.1

11 May 16:37
Compare
Choose a tag to compare

Github publication !

Features:

  • pydantic validation
  • post-resolution interpolation
  • advanced safe interpolation
  • typer-based CLI
  • extended toml config files
  • inport/export config to string/files from simple & complex values