jq
jq is a lightweight and flexible JSON processor.
Decision gist · record as of 2026-08-14
Yes. jq is actively maintained, has no known vulnerabilities, runs on current Python versions, and offers prebuilt wheels for common platforms. Install friction is moderate but manageable. Use it if you need jq's query language in Python; if you only need basic JSON manipulation, the standard library json module may suffice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- If no prebuilt wheel is available, building from source requires autoconf, libtool, a C compiler, and Python development headers.
- Medium install friction: prebuilt wheels exist for Python 3.8–3.14 on Linux, macOS, and Windows, but fallback source builds require autoconf, libtool, a C compiler, and Python headers.
- Set JQPY_USE_SYSTEM_LIBS=1 to use system libjq instead of building it.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-07-10 (35 days) · last repo commit 2026-07-10 · 452 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,021,577 downloads/mo, #1,798 on PyPI
Alternatives
Verify before relying
pip install jq
import jq
result = jq.compile(".+5").input_value(42).first()
assert result == 47- Whether jq 1.8.2 is the latest upstream version or if newer versions are available
- Performance characteristics compared to other JSON query libraries in Python
- Whether PyPy support is actively tested or only declared
What it is and what it does
jq is a Python wrapper around the jq JSON query language (version 1.8.2), letting you write jq programs in Python and apply them to JSON data. It compiles a jq program string into an executable object, then chains input methods (input_value, input_values, input_text) to supply data and output methods (first, all, text, iter) to retrieve results. The package handles both parsed JSON values and raw JSON text, supports multiple outputs per query, and allows passing variables into programs via the args parameter.
The main use case is querying and transforming JSON structures using jq's expressive filter syntax without shelling out to the jq command-line tool. It has no runtime dependencies beyond the compiled jq library itself, and prebuilt wheels cover most common platforms and Python versions, though building from source on unsupported platforms requires a C toolchain.
Use it for
- Extract and transform JSON data in data pipelines using jq's filter syntax instead of manual dict manipulation.
- Parse streaming JSON text (newline-delimited or slurped) and apply complex queries in a single call.
- Integrate jq programs written for command-line use into Python applications without subprocess overhead.
- Filter and reshape nested JSON structures with jq's array/object operators and built-in functions.
- Build JSON query tools that accept jq program strings as user input and execute them safely.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
jq is actively maintained, has no known vulnerabilities, runs on current Python versions, and offers prebuilt wheels for common platforms. Install friction is moderate but manageable. Use it if you need jq's query language in Python; if you only need basic JSON manipulation, the standard library json module may suffice.
Install
jq on PyPI
Before you install
Medium install friction: prebuilt wheels exist for Python 3.8–3.14 on Linux, macOS, and Windows, but fallback source builds require autoconf, libtool, a C compiler, and Python headers. Set JQPY_USE_SYSTEM_LIBS=1 to use system libjq instead of building it.
If no prebuilt wheel is available, building from source requires autoconf, libtool, a C compiler, and Python development headers.
License in practice
BSD-2-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install jq
import jq
result = jq.compile(".+5").input_value(42).first()
assert result == 47
Verify before relying
- Whether jq 1.8.2 is the latest upstream version or if newer versions are available
- Performance characteristics compared to other JSON query libraries in Python
- Whether PyPy support is actively tested or only declared
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 35 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,021,577 / month, #1,798 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 :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: jq-1.12.0-cp310-cp310-macosx_10_9_x86_64.whl; jq-1.12.0-cp310-cp310-macosx_11_0_arm64.whl; jq-1.12.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; jq-1.12.0-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl; jq-1.12.0-cp310-cp310-musllinux_1_2_aarch64.whl; jq-1.12.0-cp310-cp310-musllinux_1_2_x86_64.whl; jq-1.12.0-cp310-cp310-win_amd64.whl; jq-1.12.0-cp311-cp311-macosx_10_9_x86_64.whl; jq-1.12.0-cp311-cp311-macosx_11_0_arm64.whl; jq-1.12.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; jq-1.12.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl; jq-1.12.0-cp311-cp311-musllinux_1_2_aarch64.whl; jq-1.12.0-cp311-cp311-musllinux_1_2_x86_64.whl; jq-1.12.0-cp311-cp311-win_amd64.whl; jq-1.12.0-cp312-cp312-macosx_10_13_x86_64.whl; jq-1.12.0-cp312-cp312-macosx_11_0_arm64.whl; jq-1.12.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; jq-1.12.0-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl; jq-1.12.0-cp312-cp312-musllinux_1_2_aarch64.whl; jq-1.12.0-cp312-cp312-musllinux_1_2_x86_64.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 › “jq json processor python”
- jqPython bindings for jq 1.8.2 that let you compile and execute jq…
- yqyq is a command-line processor that applies jq filters to YAML, XML,…
- jcConverts output from popular CLI tools, file-types, and strings into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also yq · jsonpath-rfc9535 · mongo-query-match · json-stream · jsonschema-rs · injective-py · bc-jsonpath-ng · postal · pycups · jsonquerylang