{"library":"mo-kwargs","title":"mo-kwargs","description":"Python library for object destructuring of function parameters using typed dictionaries/objects. Current version 8.703.26061. Very frequent releases (multiple per month).","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install mo-kwargs"],"cli":null},"imports":["from mo_kwargs import kwargs","from mo_kwargs import override","from mo_kwargs import set_default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mo_kwargs import kwargs\n\n@kwargs\nclass MyClass:\n    def __init__(self, a, b=10, c=None):\n        self.a = a\n        self.b = b\n        self.c = c\n\nobj = MyClass({'a': 1, 'c': 2})\nprint(obj.a, obj.b, obj.c)  # 1 10 2","lang":"python","description":"Decorate a class with @kwargs to automatically destructure a dictionary argument into constructor parameters.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}