fsimport-0.0.8
توضیحات
Import source file from the file system for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fsimport-0.0.8 |
| نام | fsimport |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Pavel Kukov |
| ایمیل نویسنده | pavelkukov@gmail.com |
| آدرس صفحه اصلی | https://github.com/pavelkukov/fsimport |
| آدرس اینترنتی | https://pypi.org/project/fsimport/ |
| مجوز | - |
# fsimport
Import source file from the file system for Python
This library is a simple wrapper around
```python
spec = importlib.util.spec_from_file_location('module', str('/full/path/to/module'))
module_inst = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module_inst)
```
It is a convenient way to import files based on the file system path. The path is relative to the caller script.
## Usage:
```python
import fsimport
include_two_levels_up = fsimport('../../file.py')
include_level_up = fsimport('../another_py_file_without_ext')
include_same_level = fsimport('./include_me')
include_level_down = fsimport('./lv3/include_me.py')
```
## Install
`pip install fsimport`
## Links
PyPI - https://pypi.org/project/fsimport/
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fsimport-0.0.8:
pip install fsimport-0.0.8.whl
نصب پکیج tar.gz fsimport-0.0.8:
pip install fsimport-0.0.8.tar.gz