Levi Blackstone b0caa41138 Add PEP8 check and fix related issues
- Add PEP8 section to tox.ini
- Add requirements.txt
- Add hacking to requirements to enforce OpenStack style requirements
- Fix formatting issues flagged by flake8 check
- Add copyright notices to all remaining files
- Update .gitignore file

Change-Id: I82cd4377d5eaded1a39fe0349105582fd42779d1
2015-08-18 14:20:15 -05:00
2014-10-22 11:26:11 -07:00
2014-02-13 09:28:19 -08:00
2014-05-28 03:42:44 +00:00
2015-08-18 00:46:23 +00:00
2014-05-23 20:37:26 +00:00
2015-08-18 14:20:15 -05:00

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')
klass = simport.load('mymodule:MyClass')  # uninstanstiated.

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

Look at the tests for some interesting naming conventions for specifying relative modules, etc.

Running Tests

From the simport root directory, run tox

Description
Simple import library for Python (not entry-point based)
Readme 78 KiB
Languages
Python 100%