Metadata-Version: 2.1
Name: bernhard-py3
Version: 1.0.1
Summary: Python3 client for Riemann
Home-page: http://github.com/brutasse/bernhard.git
Author: Benjamin Anderspn
License: ASF2.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: Log Analysis
Classifier: Topic :: Utilities
Classifier: Topic :: System :: Networking :: Monitoring
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
```
