jsonschema-path
JSONSchema Spec with object-oriented paths
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, supports current Python versions (3.10–3.14), and solves a real problem for anyone working with JSON Schema or OpenAPI specs. Low install friction and permissive licensing make it a safe dependency. Suitable for projects that need programmatic schema navigation beyond simple dict access.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with four lightweight runtime dependencies (PyYAML, attrs, pathable, referencing).
- Active maintenance with a recent release 87 days ago and ongoing repository activity.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-05-19 (87 days) · last repo commit 2026-07-27 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 102,204,595 downloads/mo, #338 on PyPI
Alternatives
Verify before relying
pip install jsonschema-path
from jsonschema_path import SchemaPath
d = {"properties": {"info": {"$ref": "#/$defs/Info"}}, "$defs": {"Info": {"properties": {"version": {"type": "string"}}}}}
path = SchemaPath.from_dict(d)
version_path = path / "properties" / "info" / "properties" / "version"
with version_path.open() as contents:
print(contents)- Whether the resolved-path cache behavior (rebinding on registry growth) is suitable for all use cases involving dynamic schema updates
- Performance characteristics compared to direct dict traversal for large or deeply nested schemas
What it is and what it does
jsonschema-path wraps JSON Schema documents in an object-oriented interface that lets you traverse them like filesystem paths using the `/` operator. Instead of manually navigating nested dicts and resolving `$ref` pointers, you construct paths declaratively and dereference them on demand through a `SchemaAccessor` layer. The package handles both internal references (like `#/$defs/Info`) and external URIs transparently.
The core pattern is to build one `SchemaAccessor` per schema document and derive multiple `SchemaPath` instances from it, sharing a resolved-reference cache. This design optimizes repeated lookups and ensures path equality works as expected when paths come from the same accessor. The cache is enabled by default but can be disabled if your schema sources return different content for the same URI.
Use it for
- Validate or inspect OpenAPI/Swagger specifications by navigating their schema definitions without manual dict traversal.
- Build tools that need to walk JSON Schema structures and resolve references programmatically.
- Implement schema-aware code generation or documentation by accessing nested schema properties via path expressions.
- Create CLI utilities or REPL tools that let users explore schema structure interactively.
- Integrate schema introspection into test frameworks or validation pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, supports current Python versions (3.10–3.14), and solves a real problem for anyone working with JSON Schema or OpenAPI specs. Low install friction and permissive licensing make it a safe dependency. Suitable for projects that need programmatic schema navigation beyond simple dict access.
Install
jsonschema-path on PyPI
Before you install
Low friction install with four lightweight runtime dependencies (PyYAML, attrs, pathable, referencing). Active maintenance with a recent release 87 days ago and ongoing repository activity.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install jsonschema-path
from jsonschema_path import SchemaPath
d = {"properties": {"info": {"$ref": "#/$defs/Info"}}, "$defs": {"Info": {"properties": {"version": {"type": "string"}}}}}
path = SchemaPath.from_dict(d)
version_path = path / "properties" / "info" / "properties" / "version"
with version_path.open() as contents:
print(contents)
Verify before relying
- Whether the resolved-path cache behavior (rebinding on registry growth) is suitable for all use cases involving dynamic schema updates
- Performance characteristics compared to direct dict traversal for large or deeply nested schemas
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesPyYAMLattrspathablereferencing |
| Maintenance | Actively maintained 87 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 102,204,595 / month, #338 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: jsonschema_path-0.5.0-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 schema path traversal”
- jsonschema-pathProvides object-oriented path-based access to JSON Schema documents,…
- jsonschema-specProvides an object-oriented interface to traverse and dereference…
- glomglom provides path-based access and declarative transformation of…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also jsonschema-spec · pathable · referencing · json-ref-dict · jsonref · jsonschema-specifications · glom · marshmallow-jsonschema · sphinx-jsonschema · check-jsonschema