eladrich / pyrallis

Pyrallis is a framework for structured configuration parsing from both cmd and files. Simply define your desired configuration structure as a dataclass and let pyrallis do the rest!

Home Page:https://eladrich.github.io/pyrallis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure functions and classes

benjs opened this issue · comments

Hey,

Thanks for this library, I will try it in my next project.

One problem I often face is configuring which class or function my code should use, e.g. use ResNet50 or VGG as backbone. This often ends up in if-clauses, and in gin-config one could use the @-Syntax in the config file to bind to functions and classes.

Do you think something similar would be possible with this library too, since we can simply type custom classes like nn.Module/tf.Module/Callable/etc.?