appspace-0.5.4
توضیحات
easy application construction with easy building blocks
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | appspace-0.5.4 |
| نام | appspace |
| نسخه کتابخانه | 0.5.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | L. C. Rees |
| ایمیل نویسنده | lcrees@gmail.com |
| آدرس صفحه اصلی | https://bitbucket.org/lcrees/appspace |
| آدرس اینترنتی | https://pypi.org/project/appspace/ |
| مجوز | BSD |
*appspace* is a component injection framework that allows any mishmash of Python
classes, objects, functions, or modules to be dynamically cobbled together into
an application.
An appspaced application is built with an appconf (application configuration)
similar to a Django urlconf:
>>> from appspace import patterns
>>> appconf = patterns(
... 'helpers',
... ('square', 'math.sqrt'),
... ('fabulous', 'math.fabs'),
... include('subapp', 'foo.bar.apps')
... )
Once configured, application components can be accessed as object attributes,
dictionary keys, or by calling the component manager directly:
>>> fab1 = plug.helpers.fabulous
>>> fab2 = plug['helpers']['fabulous']
>>> fab1(2)
2.0
>>> fab2(2)
2.0
>>> plug.helpers.fabulous(2)
2.0
>>> plug('fabulous', 2)
2.0
نحوه نصب
نصب پکیج whl appspace-0.5.4:
pip install appspace-0.5.4.whl
نصب پکیج tar.gz appspace-0.5.4:
pip install appspace-0.5.4.tar.gz