rlmgrep 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rlmgrep/__init__.py +1 -1
- {rlmgrep-0.1.6.dist-info → rlmgrep-0.1.8.dist-info}/METADATA +25 -9
- {rlmgrep-0.1.6.dist-info → rlmgrep-0.1.8.dist-info}/RECORD +6 -6
- {rlmgrep-0.1.6.dist-info → rlmgrep-0.1.8.dist-info}/WHEEL +0 -0
- {rlmgrep-0.1.6.dist-info → rlmgrep-0.1.8.dist-info}/entry_points.txt +0 -0
- {rlmgrep-0.1.6.dist-info → rlmgrep-0.1.8.dist-info}/top_level.txt +0 -0
rlmgrep/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rlmgrep
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: Grep-shaped CLI search powered by DSPy RLM
|
|
5
5
|
Author: rlmgrep
|
|
6
6
|
License: MIT
|
|
@@ -17,9 +17,9 @@ Grep-shaped search powered by DSPy RLM. It accepts a natural-language query, sca
|
|
|
17
17
|
## Quickstart
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
uv tool install
|
|
20
|
+
uv tool install rlmgrep
|
|
21
21
|
# or from GitHub:
|
|
22
|
-
# uv tool install
|
|
22
|
+
# uv tool install git+https://github.com/halfprice06/rlmgrep.git
|
|
23
23
|
|
|
24
24
|
export OPENAI_API_KEY=... # or set keys in ~/.rlmgrep
|
|
25
25
|
rlmgrep "where are API keys read" rlmgrep/
|
|
@@ -31,6 +31,20 @@ rlmgrep "where are API keys read" rlmgrep/
|
|
|
31
31
|
- Deno runtime (DSPy RLM uses a Deno-based interpreter)
|
|
32
32
|
- API key for your chosen provider (OpenAI, Anthropic, Gemini, etc.)
|
|
33
33
|
|
|
34
|
+
## Non-text Files (PDF + Office + Media)
|
|
35
|
+
|
|
36
|
+
One of rlmgrep’s most useful features is that it can “grep” **PDFs and Office files** by converting them into text before the RLM search runs.
|
|
37
|
+
|
|
38
|
+
How it works:
|
|
39
|
+
- **PDFs** are parsed with `pypdf`. Each page gets a marker line like `===== Page N =====`, and output lines include a `page=N` suffix. Line numbers refer to the extracted text (not PDF coordinates).
|
|
40
|
+
- **Office & binary docs** (`.docx`, `.pptx`, `.xlsx`, `.html`, `.zip`, etc.) are converted to Markdown via **MarkItDown**. This happens during ingestion, so rlmgrep can search them like any other text file.
|
|
41
|
+
- **Images** can be described by a vision model through MarkItDown (OpenAI/Anthropic/Gemini).
|
|
42
|
+
- **Audio** transcription is supported through OpenAI when enabled.
|
|
43
|
+
|
|
44
|
+
Sidecar caching:
|
|
45
|
+
- For images/audio, converted text is cached next to the original file as `<original>.<ext>.md` and reused on later runs.
|
|
46
|
+
- Use `-a/--text` if you want to treat binary files as raw text (UTF‑8 with replacement) and skip conversion.
|
|
47
|
+
|
|
34
48
|
## Install Deno
|
|
35
49
|
|
|
36
50
|
DSPy requires the Deno runtime. Install it with the official scripts:
|
|
@@ -70,7 +84,8 @@ Common options:
|
|
|
70
84
|
- `--no-recursive` do not recurse directories
|
|
71
85
|
- `-a`, `--text` treat binary files as text
|
|
72
86
|
- `-y`, `--yes` skip file count confirmation
|
|
73
|
-
- `--stdin
|
|
87
|
+
- `--files-from-stdin` treat stdin as newline-delimited file paths (e.g., `rg -l`)
|
|
88
|
+
- `--files-from-rg` alias for `--files-from-stdin`
|
|
74
89
|
- `--model`, `--sub-model` override model names
|
|
75
90
|
- `--api-key`, `--api-base`, `--model-type` override provider settings
|
|
76
91
|
- `--max-iterations`, `--max-llm-calls` cap RLM search effort
|
|
@@ -173,12 +188,13 @@ CLI flags override config values. Model keys are resolved as:
|
|
|
173
188
|
|
|
174
189
|
If more than one provider key is set and the model does not make the provider obvious, rlmgrep emits a warning and requires an explicit `--api-key`.
|
|
175
190
|
|
|
176
|
-
##
|
|
191
|
+
## Skill (Anthropic-style)
|
|
192
|
+
|
|
193
|
+
A ready-to-copy skill lives in:
|
|
194
|
+
|
|
195
|
+
- `skills/rlmgrep-usage/SKILL.md`
|
|
177
196
|
|
|
178
|
-
-
|
|
179
|
-
- Images and audio are converted via `markitdown` when enabled in config. Image conversion supports `openai`, `anthropic`, and `gemini` providers; audio conversion currently supports `openai` only.
|
|
180
|
-
- Converted image/audio text is cached in sidecar files named `<original>.<ext>.md` next to the original file and reused on subsequent runs.
|
|
181
|
-
- Use `-a/--text` to force binary files to be read as text (UTF-8 with replacement).
|
|
197
|
+
Install it by copying the folder into your agent’s skills directory (for example, `~/.claude/skills/rlmgrep-usage/`), then invoke it as `$rlmgrep-usage` in prompts. This is a lightweight, documentation-only skill meant to guide when to use rlmgrep vs `rg`/`grep`.
|
|
182
198
|
|
|
183
199
|
## Development
|
|
184
200
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
rlmgrep/__init__.py,sha256=
|
|
1
|
+
rlmgrep/__init__.py,sha256=J-ZAXY7tnYw7E5X3eod4-Q1hZ1FtnW7JHRKkkRpff-c,48
|
|
2
2
|
rlmgrep/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
|
|
3
3
|
rlmgrep/cli.py,sha256=eUdM9aC0znZFzjqj-4YmT0_ymisSc_lUwDVjRi4ZU-s,20589
|
|
4
4
|
rlmgrep/config.py,sha256=u1iz-nI8dj-dZETbpIki3RQefHJEyi5oE5zE4_IR8kg,2399
|
|
@@ -7,8 +7,8 @@ rlmgrep/ingest.py,sha256=uCz2el9B-RIT9umFo-gFEdAsmWPP1IJOArFFQY0D_1A,9127
|
|
|
7
7
|
rlmgrep/interpreter.py,sha256=s_nMRxLlAU9C0JmUzUBW5NbVbuH67doVWF54K54STlA,2478
|
|
8
8
|
rlmgrep/render.py,sha256=OYZy7BuJJe-KsDhEGAz6JA5RGd65ZInPWf9wLDJE0ag,3554
|
|
9
9
|
rlmgrep/rlm.py,sha256=i3rCTp8OABByF60Un5gO7265gaW4spwU0OFKIz4surg,5750
|
|
10
|
-
rlmgrep-0.1.
|
|
11
|
-
rlmgrep-0.1.
|
|
12
|
-
rlmgrep-0.1.
|
|
13
|
-
rlmgrep-0.1.
|
|
14
|
-
rlmgrep-0.1.
|
|
10
|
+
rlmgrep-0.1.8.dist-info/METADATA,sha256=C_gnUrUZ_Wktda5-QgX4qn0f1fZWqLUHwN6uSNGK5DQ,7157
|
|
11
|
+
rlmgrep-0.1.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
rlmgrep-0.1.8.dist-info/entry_points.txt,sha256=UV6QkEbkwBO1JJ53mm84_n35tVyOczPvOQ14ga7vrCI,45
|
|
13
|
+
rlmgrep-0.1.8.dist-info/top_level.txt,sha256=gTujSRsO58c80eN7aRH2cfe51FHxx8LJ1w1Y2YlHti0,8
|
|
14
|
+
rlmgrep-0.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|