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.1.tar.gz
(2.1 kB
view details)
File details
Details for the file includer-1.0.1.tar.gz
.
File metadata
- Download URL: includer-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63db9a2b585a0789d5f2c6d6d38b524168ed199f02a1cfb71fe37d4fb4fa1691 |
|
MD5 | 21110256ee77b7e7f27bbcf027e67546 |
|
BLAKE2b-256 | 5dd71afcd62e49ba04dc44ccb0febc91bea47d71eb1995d6befe3fe1175c1bee |