bc-jsonpath-ng
A final implementation of JSONPath for Python that aims to be standard compliant, including arithmetic and binary comparison operators and providing clear AST for metaprogramming.
Decision gist · record as of 2026-08-14
Yes, if you need standards-compliant JSONPath with arithmetic and comparison operators. The low install friction, permissive license, and zero security issues make it safe to add. However, note that maintenance is dormant (last commit Feb 2024, no releases for 992 days)—suitable for stable production use but not for projects requiring active bug fixes or feature development.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Low install friction with only two runtime dependencies (ply and decorator).
- Maintenance is dormant—last commit was 2024-02-05 and no releases for 992 days—but the package is marked Production/Stable and has seen no security issues.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions; suitable for most projects.
last release 2023-11-26 (992 days) · last repo commit 2024-02-05 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,425,449 downloads/mo, #2,305 on PyPI
Alternatives
Verify before relying
pip install bc-jsonpath-ng
from bc_jsonpath_ng import parse
jsonpath_expr = parse('foo[*].baz')
matches = jsonpath_expr.find({'foo': [{'baz': 1}, {'baz': 2}]})
values = [match.value for match in matches]- Whether the dormant maintenance status (last commit Feb 2024) affects real-world reliability or if the stable API is sufficient for production use.
- Performance characteristics when querying very large JSON documents or deeply nested structures.
- Real-world usage patterns and whether the AST manipulation features (update/remove nodes) are actively used.
What it is and what it does
bc-jsonpath-ng is a JSONPath implementation for Python that provides a full language implementation rather than regex-based matching. It parses JSONPath expressions into first-class AST objects, making them easy to analyze, transform, and extend. The library supports standard JSONPath syntax plus extensions like arithmetic operators, binary comparisons, named operators, and the ability to update or remove nodes in the matched tree.
You use it by parsing a JSONPath string or building expressions programmatically, then calling find() on a JSON-like Python dict to extract matching values. The library returns match objects that preserve full path information, enabling automatic ID generation and parent traversal. It depends on ply and decorator for parsing and function decoration.
Use it for
- Extract specific fields from nested JSON APIs or configuration files using a single expression.
- Validate or filter JSON documents by matching against multiple conditions with operators.
- Build tools that transform JSON structures by updating or removing matched nodes via the AST API.
- Generate automatic unique identifiers for JSON data elements that lack them, using path information.
- Parse and analyze JSONPath expressions themselves for query optimization or documentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need standards-compliant JSONPath with arithmetic and comparison operators.
The low install friction, permissive license, and zero security issues make it safe to add. However, note that maintenance is dormant (last commit Feb 2024, no releases for 992 days)—suitable for stable production use but not for projects requiring active bug fixes or feature development.
Install
bc-jsonpath-ng on PyPI
Before you install
Low install friction with only two runtime dependencies (ply and decorator). Maintenance is dormant—last commit was 2024-02-05 and no releases for 992 days—but the package is marked Production/Stable and has seen no security issues.
Requires Python 3.8 or later.
License in practice
Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install bc-jsonpath-ng
from bc_jsonpath_ng import parse
jsonpath_expr = parse('foo[*].baz')
matches = jsonpath_expr.find({'foo': [{'baz': 1}, {'baz': 2}]})
values = [match.value for match in matches]
Verify before relying
- Whether the dormant maintenance status (last commit Feb 2024) affects real-world reliability or if the stable API is sufficient for production use.
- Performance characteristics when querying very large JSON documents or deeply nested structures.
- Real-world usage patterns and whether the AST manipulation features (update/remove nodes) are actively used.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesplydecorator |
| Maintenance | Dormant 992 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,425,449 / month, #2,305 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: bc_jsonpath_ng-1.6.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “json filtering and selection”
- bc-jsonpath-ngParses and queries JSON structures using JSONPath expressions,…
- jsonquerylangExecutes queries against JSON data using a specialized query…
- pytest-regexA pytest plugin that selects tests to run using Python regular…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also jsonpath-ng · jsonpath-python · jsonpath-rw · jsonpath-rw-ext · jmespath · jsonpath · jsonpath-rfc9535 · objectpath · python-jsonpath · robotframework-jsonlibrary