skip to navigation
skip to content

includer 1.0.2

Include and run callables

Usage

some_module.py:

def some_func(arg='World'):
    print('Hello {}'.format(arg))

some_else_module.py:

from includer import include

include('some_module.some_func', arg='ZZZ')

IncluderMixin

Mix include method for objects. Behavior like as Configurator.include. See tests for understood it.

This is very usefull for imperative application configuration.

Tests

$ pip install pytest
$ py.test tests -v
 
File Type Py Version Uploaded on Size
includer-1.0.2.tar.bz2 (md5) Source 2015-11-09 2KB