semvec/pypi-packages huggingface dataset:
python-include 2.0.0
Relative imports that actually work
License: MIT
Requires Python: >=3.6

# Install

`pip install python-include`

# Use

```python
import python_include

# import [name] from-anywhere (doesnt pollute global namespace)
hello = python_include.file("./path/to/file/with/hello/func/code.py", {"__file__":__file__}).hello
hello()

# import [*everything*] from-anywhere (does pollute global namespace)
python_include.file("./path/to/file/with/hello/func/code.py", globals())
hello() # function that was defined inside that^ "code.py"
```