lebrice / SimpleParsing

Simple, Elegant, Typed Argument Parsing with argparse
MIT License
410 stars 52 forks source link

Add support for TOML config files #289

Closed diggerk closed 12 months ago

diggerk commented 1 year ago

It'd be nice to support configs in the TOML format in addition to all the other formats that are supported already.

This PR adds the the depedencies for tomli and tomli-w as extras, creates a new FormatExtension and a small unit test. I've only tested this so far by running the unit test and checking that the created TOML file looks reasonable.

diggerk commented 1 year ago

Hi @lebrice , can you take a look at this please?

diggerk commented 8 months ago

Hi @lebrice , do you have plans on cutting a new release? We really want to have this feature released. Thanks!

lebrice commented 8 months ago

Hey, sure, I can make a new release. Thanks for the reminder!

lebrice commented 8 months ago

Done @diggerk