Skip to main content

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


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)

Uploaded source

Built Distribution

agon-0.1.0.post1-py3-none-any.whl (1.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page