Is your feature request related to a problem? Please describe.
I'm not happy with the configuration being a dict in many places, because it implies and hence duplicates definition of default values when accessing values using config.get(key, default) or config.get(key) or default.
Describe the solution you'd like
Refactor out Config class from Context
Make Processor constructor turn config dict into Config object,
Pass config: Config to Context and publish via ctx.config: Config property.
Is your feature request related to a problem? Please describe.
I'm not happy with the configuration being a
dict
in many places, because it implies and hence duplicates definition of default values when accessing values usingconfig.get(key, default)
orconfig.get(key) or default
.Describe the solution you'd like
Config
class fromContext
Processor
constructor turn configdict
intoConfig
object,config: Config
toContext
and publish viactx.config: Config
property.