兔子服务客户端
service-rabbit的Python项目详细描述
[![构建状态](https://travis-ci.org/puntonim/service-rabbit.svg?branch=master)(https://travis ci.org/puntonim/service rabbit)
请求超时=30,
http_auth_username=”用户“,
http_auth_password=”通过“,
)
服务_rabbit.conf.settings.configure(**d)
使用客户端。
从服务_rabbit.client导入rabbitclient
客户端=rabbitclient()
响应=客户端。获取队列('inspire',orcid_push')
response.raise_for_result()
>consumers=response.get_consumers_count()
>messages=response.get_messages_count()
````
` ``发展
` `` bash
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `创建一个venv并安装一个venv的$make lint
测试:
$make test tox针对python27和python36的python27和python36的测试。
$tox-e py27 tox针对特定python版本的测试。
$pytest$pytest pytest针对活动静脉的测试。
$make test/tests/test_client.py针对python27和python36的测试。
$tox-e py27-tests/test_client.py-client.py.针对特定python版本。
$py test tests/test-client.py/pytest/test-client.py/pytest/pytest/pytest/pytest/pytest/pytest/pytest/pytest/active.venv.在“setup_gen.py”中编辑版本。
…version=pep440_version('1.1.1'),
```
请求超时=30,
http_auth_username=”用户“,
http_auth_password=”通过“,
)
服务_rabbit.conf.settings.configure(**d)
使用客户端。
从服务_rabbit.client导入rabbitclient
客户端=rabbitclient()
响应=客户端。获取队列('inspire',orcid_push')
response.raise_for_result()
>consumers=response.get_consumers_count()
>messages=response.get_messages_count()
````
` ``发展
` `` bash
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `创建一个venv并安装一个venv的$make lint
测试:
$make test tox针对python27和python36的python27和python36的测试。
$tox-e py27 tox针对特定python版本的测试。
$pytest$pytest pytest针对活动静脉的测试。
$make test/tests/test_client.py针对python27和python36的测试。
$tox-e py27-tests/test_client.py-client.py.针对特定python版本。
$py test tests/test-client.py/pytest/test-client.py/pytest/pytest/pytest/pytest/pytest/pytest/pytest/pytest/active.venv.在“setup_gen.py”中编辑版本。
…version=pep440_version('1.1.1'),
```