Metadata-Version: 2.4
Name: pjmespath
Version: 0.1.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
License-File: LICENSE
Summary: Fast JMESPath JSON query engine for Python
Keywords: jmespath,json,query,search,rust
License-Expression: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/gatewaytofredom/pjmespath
Project-URL: Repository, https://github.com/gatewaytofredom/pjmespath

# pjmespath

[![CI](https://github.com/gatewaytofredom/pjmespath/actions/workflows/ci.yml/badge.svg)](https://github.com/gatewaytofredom/pjmespath/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/pjmespath.svg)](https://pypi.org/project/pjmespath/)
[![Python Versions](https://img.shields.io/pypi/pyversions/pjmespath.svg)](https://pypi.org/project/pjmespath/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/gatewaytofredom/pjmespath/blob/main/LICENSE)

Fast JMESPath JSON query engine for Python — a drop-in replacement for `jmespath` that runs **7–10× faster**.

## Install

```bash
pip install pjmespath
```

Prebuilt wheels are included for Linux, macOS, and Windows (Python 3.9+, no Rust toolchain needed).

## Usage

```python
import pjmespath

data = {"people": [{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]}
names = pjmespath.search("people[?age > `26`].name", data)
# ['Alice']
```

## Performance

| Workload | `jmespath` | `pjmespath` (x86-64) | `pjmespath` (Apple M4) |
|---|---:|---:|---:|
| Small (`search`) | 2.38 µs | 0.23 µs (10.25×) | 0.19 µs (7.16×) |
| Medium AWS (`search`) | 473.23 µs | 59.31 µs (7.98×) | 41.20 µs (7.96×) |
| Large 1k (`search`) | 1747.77 µs | 203.99 µs (8.57×) | 144.29 µs (8.16×) |

## Under the hood

- Written in Rust (PyO3) with zero external runtime dependencies and runtime SIMD dispatch (AVX2 / SSE2 / ARM64 NEON)
- Compact `cp39-abi3` wheel with PEP 561 type stubs (`py.typed` + `__init__.pyi`)

## License

MIT

