Simple import library for Python (not entry-point based)
Go to file
Sandy Walsh 9172a03a3e module isn't required for local files 2014-05-26 18:31:06 +00:00
simport module isn't required for local files 2014-05-26 18:31:06 +00:00
tests module isn't required for local files 2014-05-26 18:31:06 +00:00
.gitignore Initial commit 2014-02-13 09:28:19 -08:00
LICENSE Initial commit 2014-02-13 09:28:19 -08:00
README.md path should be to directory, not file 2014-05-26 16:04:49 +00:00
setup.cfg added setup and tox support 2014-05-23 20:37:26 +00:00
setup.py added setup and tox support 2014-05-23 20:37:26 +00:00
tox.ini added setup and tox support 2014-05-23 20:37:26 +00:00

README.md

simport

Simple Import Library for Python

Supports importing functions or class methods from files not in the Python Path.

Using Simport

import simport

# For modules already in the Python Path
function = simport.load('mymodule.myfunction')
class_method = simport.load('mymodule:MyClass.mymethod')

# For modules not in the Python Path
function = simport.load('/path/to/file|module_name:myfunction')
class_method = simport.load('/path/to/module|module_name:MyClass.mymethod')

Running Tests

From the simport root directory, run tox