gritql
Python bindings for GritQL
Decision gist · record as of 2026-08-14
Yes, if you need multi-language code search and transformation at scale and can tolerate a dormant package. The MIT license and zero runtime dependencies make it low-friction to try. However, be aware that no active maintenance means you will not receive updates, bug fixes, or support for new language versions. Suitable for one-off migrations or stable, self-contained use cases; not recommended if you need ongoing support or frequent updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The package is a Python binding to a Rust-based tool; the underlying GritQL engine must be available in your environment for queries to execute.
- Installation is straightforward with no runtime dependencies.
- The package is dormant (657 days since last release), so expect no active maintenance or bug fixes going forward.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.
last release 2024-10-26 (657 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 114,847 downloads/mo, #12,277 on PyPI
Alternatives
Verify before relying
pip install gritql
import gritql
# Use gritql module to construct and run queries on source code- Whether the Rust-based GritQL engine is bundled with the wheel or must be installed separately.
- What Python version is actually required (classifiers list 2.7 through 3.12, but requires_python is unspecified).
- Whether dormant status means the binding is stable or no longer maintained alongside upstream GritQL.
What it is and what it does
GritQL is a Python binding for a code query and transformation language built in Rust. It lets you write declarative patterns to find and modify code across JavaScript, TypeScript, Python, JSON, Java, Terraform, Solidity, CSS, Markdown, YAML, Rust, Go, and SQL without needing to understand AST details—any code snippet can serve as a starting pattern. The language is designed to scale to large repositories and includes a module system with reusable patterns.
You install it as a Python package, but it acts as a bridge to the underlying Rust engine. Since the package is dormant (last release 657 days ago), it is no longer actively maintained, so you should expect no updates or bug fixes. It has no Python runtime dependencies, making installation lightweight.
Use it for
- Search and refactor a large codebase across multiple languages using a single query syntax.
- Automate code migrations or standardization tasks across JavaScript, Python, and other supported languages.
- Build custom linting or code-quality rules that apply pattern-based fixes automatically.
- Query and modify infrastructure-as-code files (Terraform, YAML) alongside application code.
- Reuse or share code transformation patterns via Grit's module system across teams.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need multi-language code search and transformation at scale and can tolerate a dormant package.
The MIT license and zero runtime dependencies make it low-friction to try. However, be aware that no active maintenance means you will not receive updates, bug fixes, or support for new language versions. Suitable for one-off migrations or stable, self-contained use cases; not recommended if you need ongoing support or frequent updates.
Install
gritql on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is dormant (657 days since last release), so expect no active maintenance or bug fixes going forward.
The package is a Python binding to a Rust-based tool; the underlying GritQL engine must be available in your environment for queries to execute.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.
Quickstart
pip install gritql
import gritql
# Use gritql module to construct and run queries on source code
Verify before relying
- Whether the Rust-based GritQL engine is bundled with the wheel or must be installed separately.
- What Python version is actually required (classifiers list 2.7 through 3.12, but requires_python is unspecified).
- Whether dormant status means the binding is stable or no longer maintained alongside upstream GritQL.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 657 days since the last release |
| First released | |
| Downloads | 114,847 / month, #12,277 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: gritql-0.2.0-py2.py3-none-any.whl; gritql-0.2.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 › “code search and refactoring”
- gritqlGritQL is a Python binding for a declarative query language that…
- ast-grep-cliast-grep-cli is a command-line tool for searching, linting, and…
- ast-grep-pyast-grep-py is a Python binding for ast-grep, a tool that searches,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also ast-grep-cli · sqloxide · rumdl · ast-grep-py · tensor-grep · google-pasta · hogql-parser-rs · sqlglot · lintro · zipcodes