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 details)
File details
Details for the file includer-1.0.2.tar.bz2
.
File metadata
- Download URL: includer-1.0.2.tar.bz2
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffad2929dbad93e5d70359bd1d5fd310e341472a427564f788c8a82fc5006923 |
|
MD5 | 2b0933c98956de88e20437b040fcdcb6 |
|
BLAKE2b-256 | 4d3fee65f1f273d70dd06b1702da559732159993ead92ab9a2c79f2bd9452b5f |