Configs
- class todd.configs.PyConfig[source]
Bases:
SerializeMixin,Config- dumps()[source]
Reverse of
loads.- Returns:
The corresponding config string.
- Return type:
The dumped string is a readable version of the config:
>>> config = PyConfig( ... a=1, ... b=dict(c=3), ... d={ ... 5: 'e', ... 'f': ['g', ('h', 'i', 'j')], ... }, ... k=[2, 1], ... l='mn', ... ) >>> print(config.dumps()) a = 1 b = {'c': 3} d = {5: 'e', 'f': ['g', ('h', 'i', 'j')]} k = [2, 1] l = 'mn'