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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file agon-0.1.0.post1.tar.gz.

File metadata

  • Download URL: agon-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for agon-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 210146ddb395e17d065a4e3b2979cd5647a9b3c1f0db1c6b1326f90a14241510
MD5 f50ec3a24c226d9d7336089068fe46f2
BLAKE2b-256 8dcc71088c1616b24358405a3c6a6fdec9b303b7fce2b75b980efa31d8c18e82

See more details on using hashes here.

File details

Details for the file agon-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: agon-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for agon-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb75d1850f65af04c5b5614e73745cf9b857605bb5c0f43cab28d4dc95d363e
MD5 7dbb16ae620ca28b780936b13d368c32
BLAKE2b-256 267c6f5f8b3b5043666cca2ffe1a40f3cb0b22a4722629a3f9542edec99fe531

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page