bernhard-py3-1.0.1
توضیحات
Python3 client for Riemann
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | bernhard-py3-1.0.1 |
| نام | bernhard-py3 |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Benjamin Anderspn |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | http://github.com/brutasse/bernhard.git |
| آدرس اینترنتی | https://pypi.org/project/bernhard-py3/ |
| مجوز | ASF2.0 |
# Bernhard
A simple Python3 client for [Riemann](http://github.com/aphyr/riemann). Usage:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'myhost.foobar.com', 'service': 'myservice', 'metric': 12})
q = c.query('true')
```
Bernhard supports custom attributes with the syntax:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
```
Querying the index is as easy as:
```python
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
```
## Installing
```bash
pip install bernhard-py3
```
نحوه نصب
نصب پکیج whl bernhard-py3-1.0.1:
pip install bernhard-py3-1.0.1.whl
نصب پکیج tar.gz bernhard-py3-1.0.1:
pip install bernhard-py3-1.0.1.tar.gz