%global _empty_manifest_terminate_build 0 Name: python-rjmespath Version: 0.2.6 Release: 1 Summary: jmespath.rs Python binding License: MIT URL: https://pypi.org/project/rjmespath/ Source0: https://mirrors.aliyun.com/pypi/web/packages/c2/df/59d7f14dc61800bfeaf6661474f45d47a2f3de804970f015cad838cd2800/rjmespath-0.2.6.tar.gz %description # rjmespath-py ![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg) [![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath) [jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding. ## Installation ```bash pip install rjmespath ``` ## Usage ```python import rjmespath print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')) ``` ## Performance Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM) ```python In [1]: import jmespath In [2]: import rjmespath In [3]: %timeit jmespath.compile('foo') 436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [4]: %timeit rjmespath.compile('foo') 354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}}) 2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}') 1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) ``` ## License This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file. %package -n python3-rjmespath Summary: jmespath.rs Python binding Provides: python-rjmespath BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-cffi BuildRequires: gcc BuildRequires: gdb %description -n python3-rjmespath # rjmespath-py ![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg) [![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath) [jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding. ## Installation ```bash pip install rjmespath ``` ## Usage ```python import rjmespath print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')) ``` ## Performance Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM) ```python In [1]: import jmespath In [2]: import rjmespath In [3]: %timeit jmespath.compile('foo') 436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [4]: %timeit rjmespath.compile('foo') 354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}}) 2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}') 1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) ``` ## License This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file. %package help Summary: Development documents and examples for rjmespath Provides: python3-rjmespath-doc %description help # rjmespath-py ![CI](https://github.com/messense/rjmespath-py/workflows/CI/badge.svg) [![PyPI](https://img.shields.io/pypi/v/rjmespath.svg)](https://pypi.org/project/rjmespath) [jmespath.rs](https://github.com/jmespath/jmespath.rs) Python binding. ## Installation ```bash pip install rjmespath ``` ## Usage ```python import rjmespath print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}')) ``` ## Performance Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM) ```python In [1]: import jmespath In [2]: import rjmespath In [3]: %timeit jmespath.compile('foo') 436 ns ± 0.478 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [4]: %timeit rjmespath.compile('foo') 354 ns ± 0.583 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [5]: %timeit jmespath.search('foo.bar', {"foo": {"bar": "baz"}}) 2.74 µs ± 10.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) In [6]: %timeit rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}') 1.21 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) ``` ## License This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file. %prep %autosetup -n rjmespath-0.2.6 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-rjmespath -f filelist.lst %dir %{python3_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 0.2.6-1 - Package Spec generated