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.0.tar.gz
(2.0 kB
view details)
File details
Details for the file includer-1.0.0.tar.gz
.
File metadata
- Download URL: includer-1.0.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f5fa72c3a13bfddc9d502aea93b299108beae52bebafe4f56881392fe02f37 |
|
MD5 | 1932c7c509375a5de9915608f6cb75d9 |
|
BLAKE2b-256 | 584a6f339a66d71d64bc23d4d1cf83826c20ab5bf91b1d336a33eb21e85660a9 |