Skip to main content

Include and run callables

Project description

https://api.travis-ci.org/zzzsochi/includer.svg https://coveralls.io/repos/zzzsochi/includer/badge.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for includer, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size includer-1.0.2.tar.bz2 (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page