Metadata-Version: 2.1
Name: agon
Version: 0.1.0.post1
Summary: Thin wrapper around jmespath in order to compose projections
Home-page: https://lab.errorist.xyz/py/agon
License: MIT
Author: Xavier Barbosa
Author-email: clint.northwood@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: jmespath (>=0.10.0,<0.11.0)
Description-Content-Type: text/markdown

# Agon

Agon is a thin wrapper around [jmespath](https://pypi.org/project/jmespath/) which let you to compose projections in a more natural manner.

It's usage is quite simple

```python
from agon import Agon

assert Agon("foo | bar") == Agon("foo") | Agon("bar") == Agon("foo") | "bar"
assert {"foo": {"bar": "baz"}} | Agon("foo | bar") == "baz"
assert {"foo": {"bar": "baz"}} | Agon("foo") | Agon("bar") == "baz"
assert {"foo": {"bar": "baz"}} | (Agon("foo") | "bar") == "baz"
```

