Skip to main content

YAQL - Yet Another Query Language

Project description

YAQL (Yet Another Query Language) is an embeddable and extensible query language, that allows performing complex queries against arbitrary objects. It has a vast and comprehensive standard library of frequently used querying functions and can be extend even further with user-specified functions. YAQL is written in python and is distributed via PyPI.

Quickstart

Install the latest version of yaql:

pip install yaql>=1.0.0

Run yaql REPL:

yaql

Load a json file:

yaql> @load my_file.json

Check it loaded to current context, i.e. $:

yaql> $

Run some queries:

yaql> $.customers … yaql> $.customers.orders … yaql> $.customers.where($.age > 18) … yaql> $.customers.groupBy($.sex) … yaql> $.customers.where($.orders.len() >= 1 or name = “John”) … yaql> let(min_orders => $.min_orders) … -> $.customers.where($.orders.len() >= $min_orders)

Project Resources

License

Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 , unless otherwise noted

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

yaql-3.2.0.tar.gz (158.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaql-3.2.0-py3-none-any.whl (157.2 kB view details)

Uploaded Python 3

File details

Details for the file yaql-3.2.0.tar.gz.

File metadata

  • Download URL: yaql-3.2.0.tar.gz
  • Upload date:
  • Size: 158.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for yaql-3.2.0.tar.gz
Algorithm Hash digest
SHA256 02d37a3b559c087b6a8e4fefb59fd7c2b58d65c82d806e6280fb7e560c321ffa
MD5 03bd57db394bde720f805579b4d46205
BLAKE2b-256 2cc51742bfa1deeb17556285742c160a229968c9256869a95768513ff3e56433

See more details on using hashes here.

File details

Details for the file yaql-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: yaql-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 157.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for yaql-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2dac3ed5085d3db7e338f45a99ead978d29a18bc1a7a4bc6fc8075546c6cac9a
MD5 c6ea45b120b6f9cae88a36017b78082f
BLAKE2b-256 65782cfb9949b6b899c0e401d6786f6e05d8e86739c9e3f22cc39f42630c80e5

See more details on using hashes here.

Supported by

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