Include and run callables
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
includer-1.0.2.tar.bz2
(2.3 kB
view hashes)