'Generating py objects via python

I was wondering if there was a rendering library that would take a dictionary object and render a file into py-object syntax. Similar to the django_extensions command dump_script. I've looked around for an hour but have got no success as of yet. I know it wouldn't take me long to create, but I want to see if there is a supported module for this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source