Metadata-Version: 2.1
Name: importmagician
Version: 0.1.0
Summary: Voldemort's Python import helper.
Home-page: https://github.com/voldemortX/import_magician
Author: Zhengyang Feng
Author-email: zyfeng97@outlook.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE

# importmagician

Voldemort's Python import helper

```
pip install importmagician
```

## Import from uninstalled Python directories

Say you have a directory (relative path `../../dir_a`) like this:

```
    ├── ../../dir_a
        ├── utils
        │   ├── util_a.py
        │   └── ...
        └── ...
```

You want `func_a` from `utils.util_a.py`:

```
from importmagician import import_from
with import_from('../../'):
    from utils.util_a import func_a

func_a()  # use func_a
```

The advantage of **importmagician** is: outside of the `with` statement, your `sys.path` remains unchanged.


