jmespath.rs Python binding
Project description
rjmespath-py
jmespath.rs Python binding.
Installation
pip install rjmespath
Usage
import rjmespath
print(rjmespath.search('foo.bar', '{"foo": {"bar": "baz"}}'))
Performance
Running on MacBook Pro (13-inch, M1, 2020, 16GB RAM)
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.67 µs ± 3.26 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 file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rjmespath-0.2.0.tar.gz
(19.7 kB
view hashes)
Built Distributions
rjmespath-0.2.0-cp36-abi3-win32.whl
(236.9 kB
view hashes)
Close
Hashes for rjmespath-0.2.0-cp36-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c9419e674da132dbe9cae8f3101391b49581d023cb809b6e69296791758e68 |
|
MD5 | 66006219daacae89c44f525176e5bc11 |
|
BLAKE2b-256 | 428460027d75c605a5d1a32629ef4f23b5cbbc52600fea196a6b9254ed843d89 |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e32c7884f563d7bfa8ea821c345082c89be139a2c928ddd78bf54c3f8d18e8 |
|
MD5 | 724e9a53c91f11d5f0887008a78f083b |
|
BLAKE2b-256 | 66b0819583cc4a632c684d76b5e880c0796b7340578ab3203bfe51d070d0091c |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b650bedd62759c4cc297b939e1b66bead5ecf04eceb2d2584178dd480d35dd33 |
|
MD5 | 9cf5fa8242b1fbf473556f418bfdae70 |
|
BLAKE2b-256 | 17b16c25a4ea8f95dcb0c731a236d2f2990ee3ef1213f0840fc82973d7aa64ef |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c466ee3f7a71525ca69f3d50b50c2fca84a20ecfe14aeda535368fa46d080dd3 |
|
MD5 | d14366dcd1fcbcff2059b224726b94c0 |
|
BLAKE2b-256 | b7ce433f5b3e0508e4663a65a03309724ac6fb440da8afa9e97941a9b4ac8e0b |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66bc5be8c2880b633c371de8fa34b1b75b14f4f1cf244451de4b727c5fd4d60 |
|
MD5 | c39eb641b38a2e1401d426c56723cc90 |
|
BLAKE2b-256 | e18da24d6fec36245f2bfdaab9a43c039cca06a4c0c1b14ece397ad6be726461 |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d9afeb7a271e0576b5abcc129dbb1f75864c9450c6be80e323a0519181c7b9 |
|
MD5 | ab10c0a6dc8a6045ab86da1b182fef61 |
|
BLAKE2b-256 | d912181db033403db1975614e2609f76b3123f6a03ce93bb67e790f132da4475 |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed91396643e6eec0acd31d004db9d16b0936cc20a8e6b5539594f2c3767300b |
|
MD5 | 87ff2a0a6d1e31260dbcdb3b106334d2 |
|
BLAKE2b-256 | 1a07f8890fa2c18edf816c378444e8274a64969ee78b20043ad7c152cdfa11fb |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10dde5b275d081bc9478ef0c250d1dc801f46187484800fd6262445443f9f0ba |
|
MD5 | 7ce2582b0dade4853c9f96d28a9803c3 |
|
BLAKE2b-256 | 9278114d062440bfd8f4d032fd0b75ce0efd6e66c2c86ba0c3318538f4b1a138 |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70459f761b7c51419120c65be166e012dda5b858f21b0da5bd72d212ee7eb1a9 |
|
MD5 | 220c252f4c183646e2aaad8332e02dd0 |
|
BLAKE2b-256 | e75739e9b74634684b26068eb8979f9e78af5c0a425bbb7b3cb4b5e13b72b6bf |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0032729970f7492e9154290f8ed5d5e5ac0def425c62248867bd02a5f2ede9e8 |
|
MD5 | 1a8c6f5c7efff1052aef52d4c87c1694 |
|
BLAKE2b-256 | 83117ebc156903eadcff99340df6df58a6fdaed0774749c3a803c1fe47211572 |
Close
Hashes for rjmespath-0.2.0-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd57fd41ac2bdb97522669b728cd76c5d09690eaf0e2555e5e46ebfb7d4bf67d |
|
MD5 | c8353033baeb85fd24f80c25740f1de4 |
|
BLAKE2b-256 | bb674551add2fe463116bb4a8b545efe911571e65733e8190b08d0de11e289d8 |