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
Project status, bugs, and blueprints are tracked on Launchpad
The yaql._ply module is a copy of the ply library .
License
Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 , unless otherwise noted
Release files for yaql 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yaql-3.2.0.tar.gz | 158.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yaql-3.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 315.9 kB
Release files / yaql-3.2.0.tar.gz
| Download URL | yaql-3.2.0.tar.gz |
|---|---|
| Size | 158.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02d37a3b559c087b6a8e4fefb59fd7c2b58d65c82d806e6280fb7e560c321ffa
|
|
BLAKE2b-256 checksum How to use checksums |
2cc51742bfa1deeb17556285742c160a229968c9256869a95768513ff3e56433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / yaql-3.2.0-py3-none-any.whl
| Download URL | yaql-3.2.0-py3-none-any.whl |
|---|---|
| Size | 157.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dac3ed5085d3db7e338f45a99ead978d29a18bc1a7a4bc6fc8075546c6cac9a
|
|
BLAKE2b-256 checksum How to use checksums |
65782cfb9949b6b899c0e401d6786f6e05d8e86739c9e3f22cc39f42630c80e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|