In python beyond 'exec string' is there a way to 'import' using the db as a filesystem
<p>Although it does not seem possible, I wanted to put this out there to see if others had some innovative solutions to 'dynamically loading and executing code in python'</p>

<p>So if one saved code in a database, one could read it and 'exec it', however if one wanted to use it in a similar fashion to the filesystem, one would need to </p>

<ol>
<li>'save and load the compiled .pyc' </li>
<li>create an 'import dbimp' ala 'import imp' etc.</li>
</ol>

<p>any pointers? ideas? thoughts?</p>
