Metadata-Version: 2.1
Name: picsellia-elasticsearch-client
Version: 1.1.0
Summary: Package wrapping elasticsearch client for Picsellia
License: MSI
Author: Thomas Darget
Author-email: thomas.darget@picsellia.com
Requires-Python: >=3.8,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: ElasticMock (>=1.8.1,<2.0.0)
Requires-Dist: elasticsearch (==7.16.2)
Description-Content-Type: text/markdown

# Picsellia Elasticsearch Client

Picsellia Elasticsearch Client is a Python library that wraps Elasticsearch Python Client in order to push Picsellia metrics.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install picsellia-elasticsearch-client
```

## Usage

```python
from picsellia_elasticsearch_client.client import PicselliaELKClient

client = PicselliaELKClient(host="localhost", port=443)

metric = PicselliaMetric(service="service", data={ "hello" : "world" })

client.push(metric)

error = PicselliaError(service="service", exception=KeyError('key'))

client.push(error)

```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
