Tool for easy to run .py
.
API allow you run python code on current python runtime like use exec
on code with correct globals info.
run a file like python ?
on command line.
run a __main__.py
like python -m ?
on command line.
run a .py
file inside a package.
the .py
file can use relative import.
this is helpful for dynimic import some files.
and you may want to use pipenv context like:
with execode.pipenv_context(THE_PIPFILE):
execode.run_py(YOUR_FILE)