Skip to content

Releases: lebrice/SimpleParsing

v0.1.6 - Bugfixes for Literal[None], minor improvements

05 Sep 19:41
5fb5676
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.5...v0.1.6

What's Changed

New Contributors

Full Changelog: v0.1.5...v0.1.6

v0.1.5 - Faster import, rework serialization support + support TOML

31 Jan 16:54
8bec502
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.4...v0.1.5

Add performance tests, `replace_subgroups`, and improve CI

07 Aug 17:46
17b96b1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.3...v0.1.4

Fix Literals, improve performance

06 Jun 21:39
f887d80
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.2...v0.1.3

v0.1.2.post1 - Bugfix and performance improvement

27 Apr 19:02
9289b00
Compare
Choose a tag to compare

What's Changed

  • Fix AttributeError in field_parsing.py by @lebrice in #251
  • Add lru_cache wrapper in docstring parsing by @lebrice in #252

Full Changelog: v0.1.2...v0.1.2.post1

v0.1.2 - Partials (dynamic config dataclasses) + bugfixes

19 Apr 15:29
68e16b2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.1...v0.1.2

v0.1.1

14 Mar 14:53
8c80ae5
Compare
Choose a tag to compare

What's Changed

  • Add test file for utils.mutable_field function by @lebrice in #218
  • Add test to illustrate enum serialization, update save/load docstrings by @lebrice in #220
  • Add support for frozen dataclass instances in subgroups by @lebrice in #224
  • Make it possible to overwrite a decoding fn for a given type by @lebrice in #232
  • Improve load/save/to_dict (see description) by @lebrice in #233
  • Literal types no longer cause a warning on decoding by @norabelrose in #221
  • Add tests to confirm that #160 and #161 are fixed by @lebrice in #234

New Contributors

Full Changelog: v0.1.0...v0.1.1

v0.1.0

20 Feb 15:22
3122f6e
Compare
Choose a tag to compare

What's Changed

  • Update the readme to feature the parse api, add tests by @lebrice in #165
  • Add argument prefix to simple_parsing.parse by @JesseFarebro in #175
  • support dataclasses.InitVar for python>=3.8 by @mixilchenko in #171
  • Add main decorator for simple parsing of entry functions by @JesseFarebro in #176
  • Fix typing for sp.main decorator by @JesseFarebro in #177
  • Apply pre-commit hooks to all files by @lebrice in #178
  • Also parse field help string from class docstring by @lebrice in #179
  • Modify forward_refs_to_types to fix issue #181 by @zhiruiluo in #182
  • Update global namespaces for postponed annotations by @zhiruiluo in #183
  • Add better support for HuggingFace-style dataclasses by @lebrice in #172
  • Rework of the subgroups feature + Minor Refactoring by @lebrice in #185
  • Remove typing-inspect dependency by @lebrice in #193
  • Add test for Issue 191 (subgroup destinations bug) by @lebrice in #194
  • Fix confusing default=True bool behavior (Fix #68) by @Conchylicultor in #190
  • Allow passing functools.partial as entries in the subgroups dict by @lebrice in #196
  • Fix small bug in type hints of subgroups fn by @lebrice in #200
  • Reorder some of the methods of ArgumentParser by @lebrice in #202
  • Fix the Dataclass protocol and make it typing-only by @lebrice in #207
  • Fix typing of the choice function by @lebrice in #208
  • Add Python 3.11 Support, rework mutable_field function by @lebrice in #213
  • Adding the simple_parsing.replace function by @zhiruiluo in #212
  • [breaking] Rework flag function, restrict nargs on bool fields by @lebrice in #206
  • Fix error handling issues with replace function by @lebrice in #214
  • Broaden from_dict applicability to non-Serializable dataclasses by @lebrice in #217

New Contributors

Full Changelog: v0.0.21...v0.1.0

V0.0.21.post1 - Decorators, InitVar, Bugfixes

06 Dec 19:10
c9cdd84
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.21...v0.0.21.post1

v0.0.21 - Literals, Defaults from Config files

19 Oct 22:17
0f1db02
Compare
Choose a tag to compare

What's Changed

  • Fields with default value of None are treated as optional (even if type annotation is wrong) by @lebrice in #151
  • Drop support for Python 3.6 by @lebrice in #153
  • Add support for simple Literal fields by @lebrice in #152
  • Export enums in main package init by @lebrice in #155
  • Add pre-commit and run on all files by @lebrice in #154
  • Add better support for setting defaults from Config files by @lebrice in #158
  • Fix bug in docstring parsing, docstrings inherit from bases by @lebrice in #164
  • Add parse to all for simple_parsing.parse by @lebrice in #170

Full Changelog: v0.0.20...v0.0.21