bareimport-0.2
توضیحات
Import a python module even if it is in a file that does not end in '.py'
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bareimport-0.2 |
| نام | bareimport |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Sean Reifschneider <jafo00@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bareimport/ |
| مجوز | - |
# bareimport - Import a python file even if it does not end in ".py".
This module is useful for building tests of functions within standalone scripts.
This allows you to have a standalone script file, without having to name it ending in
".py". Then you can create test files that:
import bareimport
mod = bareimport.import_script_as_module('mod', ['./mod', '../mod'])
# You can also import "mod" now:
from mod import func
## License
CC0 1.0 Universal, see LICENSE file for more information.
<!-- vim: ts=4 sw=4 ai et tw=85
-->
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl bareimport-0.2:
pip install bareimport-0.2.whl
نصب پکیج tar.gz bareimport-0.2:
pip install bareimport-0.2.tar.gz