execode-0.1.2
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | execode-0.1.2 |
| نام | execode |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Cologler/execode-python |
| آدرس اینترنتی | https://pypi.org/project/execode/ |
| مجوز | MIT License |
# execode

[](https://travis-ci.com/Cologler/execode-python)
[](https://pypi.org/project/execode/)
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:
``` py
with execode.pipenv_context(THE_PIPFILE):
execode.run_py(YOUR_FILE)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | fsoopify |
نحوه نصب
نصب پکیج whl execode-0.1.2:
pip install execode-0.1.2.whl
نصب پکیج tar.gz execode-0.1.2:
pip install execode-0.1.2.tar.gz