anyconfig.backend.python.dumper
¶
A backend module to dump python code conntains data.
Format to support: Python code
Requirements: None (built-in)
Development Status :: 3 - Alpha
Limitations:
This implementaton is very simple and it should be difficult to dump complex data using this.
Special options: None
Changelog:
Added in version 0.14.0:
Added builtin data dumper from python code
- class anyconfig.backend.python.dumper.Dumper¶
Bases:
ToStringDumperMixin
Dumper for objects as python code.
- dump_to_string(cnf, **_kwargs)¶
Dump config ‘cnf’ to a string.
- Parameters:
cnf (
Union
[None
,int
,float
,bool
,str
,dict
[str
,Any
]]) – Configuration data to dumpkwargs – optional keyword parameters to be sanitized :: dict
- Return type:
str
- Returns:
string represents the configuration
- __annotations__ = {}¶
- __module__ = 'anyconfig.backend.python.dumper'¶