Skip to content
Yet another query language
Python
Branch: master
Clone or download

Latest commit

gmannos Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Icf9fa58f9c9ae9e1bbe436638fe915974543dddb
Latest commit bfc3c48 May 13, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Cleanup py27 support Apr 7, 2020
releasenotes [ussuri][goal] Drop python 2.7 support and testing Nov 16, 2019
yaql Update hacking for Python3 Mar 30, 2020
.coveragerc Change ignore-errors to ignore_errors Sep 21, 2015
.gitignore Use reno for releasenotes Jul 11, 2016
.gitreview OpenDev Migration Patch Apr 19, 2019
.mailmap Toxify project Jul 3, 2014
.testr.conf Toxify project Jul 3, 2014
.zuul.yaml [ussuri][goal] Drop python 2.7 support and testing Nov 16, 2019
CONTRIBUTING.rst Workflow documentation is now in infra-manual Dec 5, 2014
HACKING.rst Update the documention for doc migration Jul 21, 2017
LICENSE Toxify project Jul 3, 2014
MANIFEST.in Drop MANIFEST.in - it's not needed by pbr Oct 20, 2016
README.rst Fix readme Pygments package not found Oct 10, 2018
babel.cfg Toxify project Jul 3, 2014
requirements.txt Get rid of Babel dependency since it is not needed Mar 2, 2017
setup.cfg Cleanup py27 support Apr 7, 2020
setup.py Cleanup py27 support Apr 7, 2020
test-requirements.txt Fix hacking min version to 3.0.1 May 13, 2020
tox.ini Merge "Update hacking for Python3" Mar 31, 2020

README.rst

YAQL: Yet Another Query Language

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

Project Resources

License

Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0

You can’t perform that action at this time.