skillfed

ripgrepy

ripgrepy v2.2.0 343.6K downloads/30d#7,381 on PyPI81
License unclear AGING released

What it is and what it does

Ripgrepy is a Python interface to ripgrep, the fast command-line search tool. It lets you construct ripgrep commands programmatically by chaining method calls—each method corresponds to a ripgrep flag—then execute the search and retrieve results in multiple formats (string, dictionary, or JSON). The package is built on ripgrep version 11.0.1 and targets Python 3.7+.

The main constraint is that ripgrepy does not bundle ripgrep itself; it acts as a thin wrapper around the system ripgrep binary. You must have rg installed and in your PATH (or provide an explicit path) before any search will work. This makes it useful for automating ripgrep searches within Python scripts or applications, but it adds a system-level dependency that must be satisfied separately.

Use it for:

  • Automate code searches across a codebase from within a Python script or application.
  • Parse ripgrep results programmatically as dictionaries or JSON for further processing.
  • Build search-based tools that need to chain ripgrep options dynamically based on user input.
  • Integrate fast file searching into Python workflows without spawning shell commands directly.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Ripgrepy is a Python wrapper around the ripgrep command-line search tool, allowing you to chain ripgrep options programmatically and retrieve results as strings, dictionaries, or JSON.

Yes, if you already have ripgrep installed on your system and need programmatic access to its search capabilities from Python. The package is straightforward and has no Python dependencies. However, the aging maintenance status (399 days since last release) and unclear license warrant a quick check of the repository before adopting it in production. The mandatory external ripgrep binary is not a blocker if you already use ripgrep, but it is a hard requirement.

Install

ripgrepy on PyPI

pip

pip install ripgrepy

uv

uv add ripgrepy

poetry

poetry add ripgrepy

Installing ripgrepy

Before you install

Installation has high friction: ripgrepy requires the ripgrep binary (rg) to be present in your system PATH or a path to be provided explicitly. The package itself has no Python dependencies, but this external system dependency is mandatory for any functionality. The project is aging—last release was 399 days ago—though the repository remains active with recent commits.

License in practice

License status is unclear; the package declares no SPDX identifier or raw license text in its metadata. Before adopting ripgrepy in a commercial or compliance-sensitive context, verify the actual license from the repository.

Quickstart

pip install ripgrepy

from ripgrepy import Ripgrepy

rg = Ripgrepy('pattern', '/path/to/search')
results = rg.with_filename().line_number().run().as_string

The ripgrep binary (rg) must be installed and available in your system PATH, or you must provide an explicit path to the ripgrep executable.

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode given the 399-day gap since the last release.
  • The actual license under which ripgrepy is distributed, since metadata shows no SPDX or raw license declaration.
  • Compatibility with Python versions beyond 3.7, since only 3.7 is listed in classifiers despite the description claiming '3.7+'.

Package facts

License not declared (unclear)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance aging — 399 days since the last release
Last repo commit
First released
Downloads 343,630/month — #7,381 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: ripgrepy-2.2.0.tar.gz

Programming Language :: Python :: 3.7

Tags

ripgrep python wrappersearch files with regexcommand-line search interfacetext search and retrievalripgrep programmatic accesspattern matching in filescode search tool
search-toolcommand-wrapper

More Utilities packages