project_config.serializers.python module
Object serializing for Python scripts namespaces.
- project_config.serializers.python.dumps(obj: Any) str [source]
Converts a namespace to a Python script.
- project_config.serializers.python.loads(string: str, namespace: Namespace = {}) Namespace [source]
Execute a Python file and exposes their namespace as a dictionary.
The logic is based in Sphinx’s configuration file loader: https://github.com/sphinx-doc/sphinx/blob/4d7558e9/sphinx/config.py#L332