amirfru / eparams

Simple and configurable parameters/configuration class. No manual schema needed
The Unlicense
5 stars 0 forks source link

Initializing class instance #2

Open shacharp opened 1 year ago

shacharp commented 1 year ago

Hey,

Is there a way to initialize a class instance in a non-keyword fashion? E.g.

`@params class Params: name = 'default name' tags = ['no', 'problem', 'with', 'list', 'here'] optim = OptimizerParams() verbose = False

config = Params('new name', ['a', 'b', 'c']) `

amirfru commented 1 year ago

Hi,

Sorry for the late response, for some reason I didn't get a notification for this issue Currently there is no way of initializing with non-keyword arguments, but I can add this feature when I have some spare time :) it shouldn't be difficult

Cheers, Amir

shacharp commented 1 year ago

It would be great! Thanks