Skip to main content

No project description provided

Project description

execode

GitHub Build Status PyPI

Tool for easy to run .py.

API

API allow you run python code on current python runtime like use exec on code with correct globals info.

execode.run_py()

run a file like python ? on command line.

execode.run_py_m()

run a __main__.py like python -m ? on command line.

execode.exec_pkg_py()

run a .py file inside a package.

the .py file can use relative import.

this is helpful for dynimic import some files.

execode.pipenv_context

and you may want to use pipenv context like:

with execode.pipenv_context(THE_PIPFILE):
    execode.run_py(YOUR_FILE)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for execode, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size execode-0.1.0-py3-none-any.whl (7.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size execode-0.1.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page