project_config.serializers.python module
Python namespace for dictionary serializing.
- project_config.serializers.python.loads(string: str, namespace: Dict[str, Any] = {}) Dict[str, Any] [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