用于配置和监视XBus的Web应用
xbus.monitor的Python项目详细描述
xbus.monitor
此软件包提供监视和管理XBus<;http://xbus.io>;的工具。
监视器提供一个rest api;它还包括一个backbone.js客户端应用程序:
- xbus_monitor_js<;https://bitbucket.org/xcg/xbus_monitor_js>;:单页 通过其与xbus.monitor通信的javascript骨干应用程序 rest api。
xbus
Xbus是一种企业服务总线。因此,它旨在帮助IT部门 通过提供 使IT系统城市化。
城市化的目标是:
- high coherence
- low coupling
有关XBus的详细信息:
- Documentation: <http://xbusbroker.readthedocs.org/>
- Website: <http://xbus.io/>
- Presentation: <http://bit.ly/1AYtQa6>
安装
设置虚拟机:
$ mkvirtualenv -p /usr/bin/python3 xbus
安装xbus.monitor软件包:
$ pip install xbus.monitor
配置
按照xbus.broker自述文件进行设置。
Xbus监视器设置在etc/production-example.ini文件中;获取它 来自Bitbucket(例如0.1.2版本):
$ wget https://bitbucket.org/xcg/xbus.monitor/raw/0.1.2/etc/production-example.ini -O monitor.ini
编辑文件中的注释。
本地化:
Edit the “pyramid.default_locale_name” variable. Note: Only “en_US” and “fr_FR” are supported for now.
运行
作为常规金字塔程序运行:
$ pserve monitor.ini
运行测试
nosetests
发展
为开发目的运行监视器时,建议停用配置文件中的cookie.secure选项:
cookie.secure = false
生成翻译模板
pip install Babel lingua python setup.py extract_messages
其他翻译任务
请参见<;http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/i18n.html>;。
python setup.py [init_catalog -l en_US] [update_catalog] [compile_catalog]
谢谢
monitor使用以下外部项目;非常感谢他们各自的作者:
- pyramid <http://docs.pylonsproject.org/projects/pyramid/en/latest/>
- pyramid_httpauth <https://github.com/tarzanjw/pyramid_httpauth>
贡献者
按提交日期排序:
- Jérémie Gavrel, <jeremie.gavrel@xcg-consulting.fr>
- Florent Aide, <florent.aide@xcg-consulting.fr>
- Houzéfa Abbasbhay, <houzefa.abba@xcg-consulting.fr>
- Alexandre Brun, <alexandre.brun@xcg-consulting.fr>
- Brendan Masson, <brendan.masson@xcg-consulting.fr>
更改日志
0.2.1(2016-07-04)
- Fix inclusion of the monitor_js client-side app into the package.
0.2.0(2016-06-27)
- Add new consumer event type settings (related to optional data lookup” / clearing features).
- Resolve aiozmq endpoints beforehand.
- Safer consumer getter.
- Log Xbus requests by default in the example configuration file.
- Simplified deployment; this application now includes a default client.
- Reworked the login system to apply on the whole client app instead of triggering on specific JS requests.
- Adapt to message tracking changes done in xbus.broker.
0.1.4(2015-05-25)
- Event types: Allow setting the “immediate reply” flag.
- Update requirements.
0.1.3(2015-05-18)
- Define required package versions in setup.py and document why some are frozen.
0.1.2初始发布(2015-05-12)
- Initial implementation of the Xbus monitor.