Thin wrapper around jmespath in order to compose projections
Project description
Agon
Agon is a thin wrapper around jmespath which let you to compose projections in a more natural manner.
It's usage is quite simple
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agon-0.1.0.post1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for agon-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb75d1850f65af04c5b5614e73745cf9b857605bb5c0f43cab28d4dc95d363e |
|
MD5 | 7dbb16ae620ca28b780936b13d368c32 |
|
BLAKE2b-256 | 267c6f5f8b3b5043666cca2ffe1a40f3cb0b22a4722629a3f9542edec99fe531 |