BrianPugh / cyclopts

Intuitive, easy CLIs based on python type hints.
Apache License 2.0
243 stars 5 forks source link

integration with https://pypi.org/project/typed-settings/ #97

Open rbonthond opened 4 months ago

rbonthond commented 4 months ago

have you seen https://pypi.org/project/typed-settings/? would it be interesting to combine this with cycleopt to deal with configuration files?

BrianPugh commented 4 months ago

Related discussion: #87

I'm not too familiar with typed-settings, I'll need to play around with it. I imagine it might be a good solution with a similar meta-app as described in #87 . Such a solution is preferable if it works!

BrianPugh commented 1 month ago

The open PR (which I'm hoping to merge soon) #165 is also relevant. Between this and the feature described in #171, I think it covers most of the core functionality mentioned in typed-settings without explicitly using typed-settings.

All that said, I'd be more than happy to merge a typed-setting specific class cyclopts.config.TypedSetting PR. I don't feel confident in tackling it myself since I don't have much experience with the library.