jmespath.py:JMESPath是JSON的查询语言

时间:2021-03-31 16:03:32
【文件属性】:
文件名称:jmespath.py:JMESPath是JSON的查询语言
文件大小:103KB
文件格式:ZIP
更新时间:2021-03-31 16:03:32
Python JMESPath JMESPath(发音为“ james path”)允许您声明性地指定如何从JSON文档中提取元素。 例如,给定此文档: {"foo": {"bar": "baz"}} jmespath表达式foo.bar将返回“ baz”。 JMESPath还支持: 引用列表中的元素。 给定数据: {"foo": {"bar": ["one", "two"]}} 表达式: foo.bar[0]将返回“ one”。 您还可以使用*语法引用列表中的所有项目: {"foo": {"bar": [{"name": "one"}, {"name": "two"}]}} 表达式: foo.bar[*].name将返回[“ one”,“ two”]。 还支持负索引(-1表示列表中的最后一个元素)。 给定上面的数据,表达式foo.bar[-1].name将返回“ two”。 *也可用
【文件预览】:
jmespath.py-develop
----MANIFEST.in(39B)
----README.rst(7KB)
----.github()
--------workflows()
----.gitmodules(0B)
----LICENSE.txt(1KB)
----CHANGELOG.rst(3KB)
----scripts()
--------astrender(2KB)
--------release(2KB)
--------abnfstress(6KB)
--------sync-tests(304B)
--------bumpversion(2KB)
----requirements-docs.txt(61B)
----requirements.txt(220B)
----perf()
--------cases()
--------perftest.py(4KB)
----.travis.yml(816B)
----tox.ini(220B)
----setup.cfg(67B)
----setup.py(2KB)
----jmespath()
--------visitor.py(11KB)
--------exceptions.py(4KB)
--------functions.py(12KB)
--------compat.py(2KB)
--------parser.py(19KB)
--------__init__.py(623B)
--------lexer.py(8KB)
--------ast.py(2KB)
----docs()
--------proposals()
--------conf.py(3KB)
--------index.rst(651B)
--------Makefile(5KB)
--------specification.rst(47KB)
--------proposals.rst(400B)
----tests()
--------compliance()
--------test_search.py(2KB)
--------test_parser.py(14KB)
--------__init__.py(1KB)
--------test_custom_functions.py(696B)
--------test_lexer.py(6KB)
--------test_functions.py(2KB)
--------test_compliance.py(4KB)
--------legacy()
----.gitignore(326B)
----bin()
--------jp.py(2KB)
--------jp-compliance(8KB)
----.coveragerc(122B)
----extra()
--------test_hypothesis.py(5KB)
----requirements26.txt(101B)

网友评论