Is there any way to import a module from memory, for example, if I were to store a python module in a database, then query it, is there any way to import that string into the current local scope without writing it to disk? for example:
module in db (as string):
def lol(x):
return x
accessing:
def import_into_this_func_scope():
x= query_from_db()
import x
x.lol("hello world")