yaql-又一种查询语言
yaql的Python项目详细描述
yaql(又一种查询语言)是一种可嵌入和可扩展的查询。 语言,允许对任意对象执行复杂查询。它 拥有庞大而全面的常用查询标准库 函数,可以使用用户指定的函数进一步扩展。Yaql是 用python编写并通过pypi分发。
快速启动
安装最新版本的yaql:
pip install yaql>=1.0.0
运行yaql repl:
yaql
加载json文件:
yaql> @load my_file.json
检查它是否加载到当前上下文,即$:
yaql> $
运行一些查询:
yaql> $.customers
...
yaql> $.customers.orders
...
yaql> $.customers.where($.age > 18)
...
yaql> $.customers.groupBy($.sex)
...
yaql> $.customers.where($.orders.len() >= 1 or name = "John")
项目资源
- Official Documentation
- 跟踪项目状态、错误和蓝图 Launchpad
许可证
apache许可证2.0版http://www.apache.org/licenses/LICENSE-2.0