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

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.1.0.tar.gz (127.4 kB view details)

Uploaded Source

Built Distribution

yaql-3.1.0-py3-none-any.whl (125.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaql-3.1.0.tar.gz
  • Upload date:
  • Size: 127.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.12

File hashes

Hashes for yaql-3.1.0.tar.gz
Algorithm Hash digest
SHA256 c336816877f12f8c8b7e14b45838598fce2d8827f781764ed7d1b4a1411c1699
MD5 71a11d5657df53af772b56be6af92992
BLAKE2b-256 90e920ca4046b3e4c684546242d802e9c6e5cbcb613e3c676e82dfa3e2a69119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaql-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 125.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.12

File hashes

Hashes for yaql-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05f78c04cdd1b6e3c2ebb461fda9578bf7a5e897d097562f420d3042d4c749a4
MD5 a517944551ced96492d7102dd6aabca9
BLAKE2b-256 5e422a4d11bfac29314261dc664584bea867f123fe144025d114a7fd0e6e2e84

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