同步操作将从 src-openEuler/python-jmespath 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global _empty_manifest_terminate_build 0Name: python-jmespathVersion: 0.9.0Release: 1Summary: JSON Matching ExpressionsLicense: MIT LicenseURL: https://github.com/jmespath/jmespath.pySource0: https://files.pythonhosted.org/packages/8f/d8/6e3e602a3e90c5e3961d3d159540df6b2ff32f5ab2ee8ee1d28235a425c1/jmespath-0.9.0.tar.gzBuildArch: noarch%descriptionJMESPath========.. image:: https://badges.gitter.im/Join Chat.svg:target: https://gitter.im/jmespath/chat.. image:: https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop:target: http://travis-ci.org/jmespath/jmespath.pyJMESPath (pronounced "james path") allows you to declaratively specify how toextract elements from a JSON document.For example, given this document::{"foo": {"bar": "baz"}}The jmespath expression ``foo.bar`` will return "baz".JMESPath also supports:Referencing elements in a list. Given the data::{"foo": {"bar": ["one", "two"]}}The expression: ``foo.bar[0]`` will return "one".You can also reference all the items in a list using the ``*``syntax::{"foo": {"bar": [{"name": "one"}, {"name": "two"}]}}The expression: ``foo.bar[*].name`` will return ["one", "two"].Negative indexing is also supported (-1 refers to the last elementin the list). Given the data above, the expression``foo.bar[-1].name`` will return "two".The ``*`` can also be used for hash types::{"foo": {"bar": {"name": "one"}, "baz": {"name": "two"}}}The expression: ``foo.*.name`` will return ["one", "two"].API===The ``jmespath.py`` library has two functionsthat operate on python data structures. You can use ``search``and give it the jmespath expression and the data::>>> import jmespath>>> path = jmespath.search('foo.bar', {'foo': {'bar': 'baz'}})'baz'Similar to the ``re`` module, you can use the ``compile`` functionto compile the JMESPath expression and use this parsed expressionto perform repeated searches::>>> import jmespath>>> expression = jmespath.compile('foo.bar')>>> expression.search({'foo': {'bar': 'baz'}})'baz'>>> expression.search({'foo': {'bar': 'other'}})'other'This is useful if you're going to use the same jmespath expression tosearch multiple documents. This avoids having to reparse theJMESPath expression each time you search a new document.Options-------You can provide an instance of ``jmespath.Options`` to control howa JMESPath expression is evaluated. The most common scenario forusing an ``Options`` instance is if you want to have ordered outputof your dict keys. To do this you can use either of these options::>>> import jmespath>>> jmespath.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))>>> import jmespath>>> parsed = jmespath.compile('{a: a, b: b}')>>> parsed.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))Specification=============If you'd like to learn more about the JMESPath language, you can check outthe `JMESPath tutorial <http://jmespath.org/tutorial.html>`__. Also checkout the `JMESPath examples page <http://jmespath.org/examples.html>`__ forexamples of more complex jmespath queries.The grammar is specified using ABNF, as described in`RFC4234 <http://www.ietf.org/rfc/rfc4234.txt>`_.You can find the most up to date`grammar for JMESPath here <http://jmespath.org/specification.html#grammar>`__.You can read the full`JMESPath specification here <http://jmespath.org/specification.html>`__.Testing=======In addition to the unit tests for the jmespath modules,there is a ``tests/compliance`` directory that contains.json files with test cases. This allows other implementationsto verify they are producing the correct output. Each jsonfile is grouped by feature.Discuss=======Join us on our `Gitter channel <https://gitter.im/jmespath/chat>`__if you want to chat or if you have any questions.%package -n python2-jmespathSummary: JSON Matching ExpressionsProvides: python-jmespathBuildRequires: python2-develBuildRequires: python2-setuptools%description -n python2-jmespathJMESPath========.. image:: https://badges.gitter.im/Join Chat.svg:target: https://gitter.im/jmespath/chat.. image:: https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop:target: http://travis-ci.org/jmespath/jmespath.pyJMESPath (pronounced "james path") allows you to declaratively specify how toextract elements from a JSON document.For example, given this document::{"foo": {"bar": "baz"}}The jmespath expression ``foo.bar`` will return "baz".JMESPath also supports:Referencing elements in a list. Given the data::{"foo": {"bar": ["one", "two"]}}The expression: ``foo.bar[0]`` will return "one".You can also reference all the items in a list using the ``*``syntax::{"foo": {"bar": [{"name": "one"}, {"name": "two"}]}}The expression: ``foo.bar[*].name`` will return ["one", "two"].Negative indexing is also supported (-1 refers to the last elementin the list). Given the data above, the expression``foo.bar[-1].name`` will return "two".The ``*`` can also be used for hash types::{"foo": {"bar": {"name": "one"}, "baz": {"name": "two"}}}The expression: ``foo.*.name`` will return ["one", "two"].API===The ``jmespath.py`` library has two functionsthat operate on python data structures. You can use ``search``and give it the jmespath expression and the data::>>> import jmespath>>> path = jmespath.search('foo.bar', {'foo': {'bar': 'baz'}})'baz'Similar to the ``re`` module, you can use the ``compile`` functionto compile the JMESPath expression and use this parsed expressionto perform repeated searches::>>> import jmespath>>> expression = jmespath.compile('foo.bar')>>> expression.search({'foo': {'bar': 'baz'}})'baz'>>> expression.search({'foo': {'bar': 'other'}})'other'This is useful if you're going to use the same jmespath expression tosearch multiple documents. This avoids having to reparse theJMESPath expression each time you search a new document.Options-------You can provide an instance of ``jmespath.Options`` to control howa JMESPath expression is evaluated. The most common scenario forusing an ``Options`` instance is if you want to have ordered outputof your dict keys. To do this you can use either of these options::>>> import jmespath>>> jmespath.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))>>> import jmespath>>> parsed = jmespath.compile('{a: a, b: b}')>>> parsed.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))Specification=============If you'd like to learn more about the JMESPath language, you can check outthe `JMESPath tutorial <http://jmespath.org/tutorial.html>`__. Also checkout the `JMESPath examples page <http://jmespath.org/examples.html>`__ forexamples of more complex jmespath queries.The grammar is specified using ABNF, as described in`RFC4234 <http://www.ietf.org/rfc/rfc4234.txt>`_.You can find the most up to date`grammar for JMESPath here <http://jmespath.org/specification.html#grammar>`__.You can read the full`JMESPath specification here <http://jmespath.org/specification.html>`__.Testing=======In addition to the unit tests for the jmespath modules,there is a ``tests/compliance`` directory that contains.json files with test cases. This allows other implementationsto verify they are producing the correct output. Each jsonfile is grouped by feature.Discuss=======Join us on our `Gitter channel <https://gitter.im/jmespath/chat>`__if you want to chat or if you have any questions.%package helpSummary: Development documents and examples for jmespathProvides: python2-jmespath-doc%description helpJMESPath========.. image:: https://badges.gitter.im/Join Chat.svg:target: https://gitter.im/jmespath/chat.. image:: https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop:target: http://travis-ci.org/jmespath/jmespath.pyJMESPath (pronounced "james path") allows you to declaratively specify how toextract elements from a JSON document.For example, given this document::{"foo": {"bar": "baz"}}The jmespath expression ``foo.bar`` will return "baz".JMESPath also supports:Referencing elements in a list. Given the data::{"foo": {"bar": ["one", "two"]}}The expression: ``foo.bar[0]`` will return "one".You can also reference all the items in a list using the ``*``syntax::{"foo": {"bar": [{"name": "one"}, {"name": "two"}]}}The expression: ``foo.bar[*].name`` will return ["one", "two"].Negative indexing is also supported (-1 refers to the last elementin the list). Given the data above, the expression``foo.bar[-1].name`` will return "two".The ``*`` can also be used for hash types::{"foo": {"bar": {"name": "one"}, "baz": {"name": "two"}}}The expression: ``foo.*.name`` will return ["one", "two"].API===The ``jmespath.py`` library has two functionsthat operate on python data structures. You can use ``search``and give it the jmespath expression and the data::>>> import jmespath>>> path = jmespath.search('foo.bar', {'foo': {'bar': 'baz'}})'baz'Similar to the ``re`` module, you can use the ``compile`` functionto compile the JMESPath expression and use this parsed expressionto perform repeated searches::>>> import jmespath>>> expression = jmespath.compile('foo.bar')>>> expression.search({'foo': {'bar': 'baz'}})'baz'>>> expression.search({'foo': {'bar': 'other'}})'other'This is useful if you're going to use the same jmespath expression tosearch multiple documents. This avoids having to reparse theJMESPath expression each time you search a new document.Options-------You can provide an instance of ``jmespath.Options`` to control howa JMESPath expression is evaluated. The most common scenario forusing an ``Options`` instance is if you want to have ordered outputof your dict keys. To do this you can use either of these options::>>> import jmespath>>> jmespath.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))>>> import jmespath>>> parsed = jmespath.compile('{a: a, b: b}')>>> parsed.search('{a: a, b: b},... mydata,... jmespath.Options(dict_cls=collections.OrderedDict))Specification=============If you'd like to learn more about the JMESPath language, you can check outthe `JMESPath tutorial <http://jmespath.org/tutorial.html>`__. Also checkout the `JMESPath examples page <http://jmespath.org/examples.html>`__ forexamples of more complex jmespath queries.The grammar is specified using ABNF, as described in`RFC4234 <http://www.ietf.org/rfc/rfc4234.txt>`_.You can find the most up to date`grammar for JMESPath here <http://jmespath.org/specification.html#grammar>`__.You can read the full`JMESPath specification here <http://jmespath.org/specification.html>`__.Testing=======In addition to the unit tests for the jmespath modules,there is a ``tests/compliance`` directory that contains.json files with test cases. This allows other implementationsto verify they are producing the correct output. Each jsonfile is grouped by feature.Discuss=======Join us on our `Gitter channel <https://gitter.im/jmespath/chat>`__if you want to chat or if you have any questions.%prep%autosetup -n jmespath-0.9.0%build%py2_build%install%py2_installinstall -d -m755 %{buildroot}/%{_pkgdocdir}if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fiif [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fiif [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fiif [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fipushd %{buildroot}if [ -d usr/lib ]; thenfind usr/lib -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/lib64 ]; thenfind usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/bin ]; thenfind usr/bin -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/sbin ]; thenfind usr/sbin -type f -printf "/%h/%f\n" >> filelist.lstfitouch doclist.lstif [ -d usr/share/man ]; thenfind usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lstfipopdmv %{buildroot}/filelist.lst .mv %{buildroot}/doclist.lst .%files -n python2-jmespath -f filelist.lst%dir %{python2_sitelib}/*%files help -f doclist.lst%{_docdir}/*%changelog* Fri Apr 30 2021 OpenStack_SIG <openstack@openeuler.org>- Package Spec generated
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。