Comparison
dpath vs jmespath vs jsonpath vs objectpath
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Filesystem-like pathing and searching for dictionaries
Low maintenance activity. Last release over 2 years ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install dpathJSON Matching Expressions
Low maintenance activity. Last release 10 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install jmespathAn XPath for JSON
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install jsonpathThe agile query language for semi-structured data. #JSON
Likely abandoned. No release or commit for years (last release over 8 years ago).
pip install objectpathIn short
- jsonpath is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- objectpath looks abandoned: avoid it for new projects.
- jmespath is the most used: 631.2M downloads a month, 61× more than dpath.
- jmespath also has the best Pythie’s Index (35).
- jmespath is growing fastest: downloads +10% over the last month.
Side by side
| Metric | dpath | jmespath | jsonpath | objectpath |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 20 | 35 |