跳转到主要内容

包含和运行可调用对象

项目描述

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

使用方法

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

混合 include 方法用于对象。行为类似于 Configurator.include。请参阅测试以了解其用法。

这对于命令式应用程序配置非常有用。

测试

$ pip install pytest
$ py.test tests -v

项目详情


下载文件

下载适用于您平台的应用程序。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。

源分布

includer-1.0.2.tar.bz2 (2.3 kB 查看散列)

上传时间:

支持者