Metadata-Version: 2.4
Name: yapyrg
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Summary: A blazingly fast recursive file searcher powered by Ripgrep engines.
Author-email: Bruno <bruno@portis.dev>
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/brunoportis/yapyrg

# yapyrg

Python bindings for [ripgrep](https://github.com/BurntSushi/ripgrep)'s underlying crates (\`grep-searcher\` and \`ignore\`).

It provides a simple interface to search files recursively while respecting \`.gitignore\` rules.

![CI](https://github.com/brunoportis/yapyrg/actions/workflows/CI.yml/badge.svg)

## Installation

```bash
uv add yapyrg
```

## Usage

```python
import yapyrg

# Search recursively for "pattern" in the current directory
matches = yapyrg.search(".", r"pattern")

# Returns a list of dicts
for m in matches:
    print(f"{m['path']}:{m['line']} - {m['content']}")
```

## Development

```bash
uv run maturin develop
```

