yaql
YAQL - Yet Another Query Language
What it is and what it does
YAQL is a query language embedded in Python that lets you write SQL-like expressions to filter, transform, and analyze data structures. You write queries as strings (e.g., `$.customers.where($.age > 18)`) and evaluate them against Python objects, JSON, or other data; the language includes a standard library of functions for grouping, filtering, and aggregation. It's designed to be extended with custom functions, making it useful when you need a safe, user-facing query interface without building a full DSL.
The package includes a REPL for interactive exploration and can load JSON files directly. It depends on pbr for build metadata and python-dateutil for date handling. The project is aging (last release 309 days ago) but supports modern Python versions through 3.13 and has no known security vulnerabilities.
Use it for:
- Build a user-facing query interface for a web app where users filter records without writing Python code.
- Query and transform JSON data loaded from files or APIs using a familiar SQL-like syntax.
- Implement dynamic filtering and aggregation in configuration or policy engines that need to evaluate expressions safely.
- Prototype data analysis workflows interactively in the YAQL REPL before moving to production code.
- Extend OpenStack tools or other projects that already use YAQL for consistent query semantics.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
YAQL is an embeddable query language for Python that lets you run complex queries against arbitrary objects using a SQL-like syntax with a standard library of query functions.
Yes, if you need a safe, embeddable query language for end-user filtering or data exploration. The low install friction, permissive license, and lack of security issues make it a solid choice. The aging maintenance status is a minor concern—suitable for stable, non-critical use cases; less ideal if you need active development or rapid bug fixes.
Install
yaql on PyPI
pip
pip install yaqluv
uv add yaqlpoetry
poetry add yaqlInstalling yaql
Before you install
Low friction to install. The package is aging (309 days since last release) but maintains support for current Python versions (3.10–3.13) and depends only on pbr and python-dateutil.
License in practice
Apache-2.0 is permissive; you can use this package freely in commercial and private projects with minimal restrictions, provided you include a copy of the license.
Quickstart
pip install yaql
import yaql
engine = yaql.create_engine()
context = yaql.create_context()
expression = engine('$.customers.where($.age > 18)')
result = expression.evaluate(context=context, $=data)
Requires Python 3.10 or later.
Verify before relying
- Whether the REPL and @load directive work as shown in the quickstart without additional setup.
- Current maintenance status and whether the OpenStack project is actively developing YAQL or in maintenance-only mode.
- Performance characteristics and scalability limits for large datasets or deeply nested queries.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pbr, python-dateutil |
| Maintenance | aging — 309 days since the last release |
| First released | |
| Downloads | 317,007/month — #7,667 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yaql-3.2.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
luqumParses Lucene Query DSL syntax into an abstract…
unclear · top 5,000 on PyPI
yargYarg is a PyPI client library that queries…
permissive · top 5,000 on PyPI
mongo-query-matchProvides a MongoDB-like query language for…
unclear · top 15,000 on PyPI
objectpathObjectPath is a query language for finding and…
permissive · top 15,000 on PyPI
py-partiql-parserParses and executes PartiQL queries against…
permissive · top 5,000 on PyPI
graphql-queryBuilds GraphQL query strings programmatically…
permissive · top 15,000 on PyPI
opensearch-dslA Python client library for building and…
permissive · top 15,000 on PyPI
plyPLY is a lexer and parser generator for Python…
permissive · top 1,000 on PyPI
jsonquerylangExecutes queries against JSON data using a…
permissive · top 15,000 on PyPI
queriesQueries is a simplified wrapper around psycopg2…
permissive · top 15,000 on PyPI