rlmgrep 0.1.7__tar.gz → 0.1.9__tar.gz
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-0.1.7 → rlmgrep-0.1.9}/PKG-INFO +20 -11
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/README.md +19 -10
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/pyproject.toml +1 -1
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/__init__.py +1 -1
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/PKG-INFO +20 -11
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/__main__.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/cli.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/config.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/file_map.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/ingest.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/interpreter.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/render.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep/rlm.py +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/SOURCES.txt +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/dependency_links.txt +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/entry_points.txt +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/requires.txt +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/rlmgrep.egg-info/top_level.txt +0 -0
- {rlmgrep-0.1.7 → rlmgrep-0.1.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rlmgrep
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Grep-shaped CLI search powered by DSPy RLM
|
|
5
5
|
Author: rlmgrep
|
|
6
6
|
License: MIT
|
|
@@ -17,12 +17,13 @@ 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
|
-
rlmgrep "where are
|
|
25
|
+
rlmgrep --answer "What does this repo do and where are the entry points?" .
|
|
26
|
+
rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
## Requirements
|
|
@@ -31,6 +32,20 @@ rlmgrep "where are API keys read" rlmgrep/
|
|
|
31
32
|
- Deno runtime (DSPy RLM uses a Deno-based interpreter)
|
|
32
33
|
- API key for your chosen provider (OpenAI, Anthropic, Gemini, etc.)
|
|
33
34
|
|
|
35
|
+
## Non-text Files (PDF + Office + Media)
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
|
|
39
|
+
How it works:
|
|
40
|
+
- **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).
|
|
41
|
+
- **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.
|
|
42
|
+
- **Images** can be described by a vision model through MarkItDown (OpenAI/Anthropic/Gemini).
|
|
43
|
+
- **Audio** transcription is supported through OpenAI when enabled.
|
|
44
|
+
|
|
45
|
+
Sidecar caching:
|
|
46
|
+
- For images/audio, converted text is cached next to the original file as `<original>.<ext>.md` and reused on later runs.
|
|
47
|
+
- Use `-a/--text` if you want to treat binary files as raw text (UTF‑8 with replacement) and skip conversion.
|
|
48
|
+
|
|
34
49
|
## Install Deno
|
|
35
50
|
|
|
36
51
|
DSPy requires the Deno runtime. Install it with the official scripts:
|
|
@@ -61,6 +76,7 @@ rlmgrep [options] "query" [paths...]
|
|
|
61
76
|
|
|
62
77
|
Common options:
|
|
63
78
|
|
|
79
|
+
- `--answer` return a narrative answer before the grep output
|
|
64
80
|
- `-C N` context lines before/after (grep-style)
|
|
65
81
|
- `-A N` context lines after
|
|
66
82
|
- `-B N` context lines before
|
|
@@ -174,13 +190,6 @@ CLI flags override config values. Model keys are resolved as:
|
|
|
174
190
|
|
|
175
191
|
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`.
|
|
176
192
|
|
|
177
|
-
## Non-text files (PDF, images, audio)
|
|
178
|
-
|
|
179
|
-
- PDF files are parsed with `pypdf`. Each page gets a marker line `===== Page N =====`, and output lines include a `page=N` suffix.
|
|
180
|
-
- 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.
|
|
181
|
-
- Converted image/audio text is cached in sidecar files named `<original>.<ext>.md` next to the original file and reused on subsequent runs.
|
|
182
|
-
- Use `-a/--text` to force binary files to be read as text (UTF-8 with replacement).
|
|
183
|
-
|
|
184
193
|
## Skill (Anthropic-style)
|
|
185
194
|
|
|
186
195
|
A ready-to-copy skill lives in:
|
|
@@ -5,12 +5,13 @@ Grep-shaped search powered by DSPy RLM. It accepts a natural-language query, sca
|
|
|
5
5
|
## Quickstart
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
uv tool install
|
|
8
|
+
uv tool install rlmgrep
|
|
9
9
|
# or from GitHub:
|
|
10
|
-
# uv tool install
|
|
10
|
+
# uv tool install git+https://github.com/halfprice06/rlmgrep.git
|
|
11
11
|
|
|
12
12
|
export OPENAI_API_KEY=... # or set keys in ~/.rlmgrep
|
|
13
|
-
rlmgrep "where are
|
|
13
|
+
rlmgrep --answer "What does this repo do and where are the entry points?" .
|
|
14
|
+
rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
## Requirements
|
|
@@ -19,6 +20,20 @@ rlmgrep "where are API keys read" rlmgrep/
|
|
|
19
20
|
- Deno runtime (DSPy RLM uses a Deno-based interpreter)
|
|
20
21
|
- API key for your chosen provider (OpenAI, Anthropic, Gemini, etc.)
|
|
21
22
|
|
|
23
|
+
## Non-text Files (PDF + Office + Media)
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
How it works:
|
|
28
|
+
- **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).
|
|
29
|
+
- **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.
|
|
30
|
+
- **Images** can be described by a vision model through MarkItDown (OpenAI/Anthropic/Gemini).
|
|
31
|
+
- **Audio** transcription is supported through OpenAI when enabled.
|
|
32
|
+
|
|
33
|
+
Sidecar caching:
|
|
34
|
+
- For images/audio, converted text is cached next to the original file as `<original>.<ext>.md` and reused on later runs.
|
|
35
|
+
- Use `-a/--text` if you want to treat binary files as raw text (UTF‑8 with replacement) and skip conversion.
|
|
36
|
+
|
|
22
37
|
## Install Deno
|
|
23
38
|
|
|
24
39
|
DSPy requires the Deno runtime. Install it with the official scripts:
|
|
@@ -49,6 +64,7 @@ rlmgrep [options] "query" [paths...]
|
|
|
49
64
|
|
|
50
65
|
Common options:
|
|
51
66
|
|
|
67
|
+
- `--answer` return a narrative answer before the grep output
|
|
52
68
|
- `-C N` context lines before/after (grep-style)
|
|
53
69
|
- `-A N` context lines after
|
|
54
70
|
- `-B N` context lines before
|
|
@@ -162,13 +178,6 @@ CLI flags override config values. Model keys are resolved as:
|
|
|
162
178
|
|
|
163
179
|
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`.
|
|
164
180
|
|
|
165
|
-
## Non-text files (PDF, images, audio)
|
|
166
|
-
|
|
167
|
-
- PDF files are parsed with `pypdf`. Each page gets a marker line `===== Page N =====`, and output lines include a `page=N` suffix.
|
|
168
|
-
- 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.
|
|
169
|
-
- Converted image/audio text is cached in sidecar files named `<original>.<ext>.md` next to the original file and reused on subsequent runs.
|
|
170
|
-
- Use `-a/--text` to force binary files to be read as text (UTF-8 with replacement).
|
|
171
|
-
|
|
172
181
|
## Skill (Anthropic-style)
|
|
173
182
|
|
|
174
183
|
A ready-to-copy skill lives in:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rlmgrep
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Grep-shaped CLI search powered by DSPy RLM
|
|
5
5
|
Author: rlmgrep
|
|
6
6
|
License: MIT
|
|
@@ -17,12 +17,13 @@ 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
|
-
rlmgrep "where are
|
|
25
|
+
rlmgrep --answer "What does this repo do and where are the entry points?" .
|
|
26
|
+
rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
## Requirements
|
|
@@ -31,6 +32,20 @@ rlmgrep "where are API keys read" rlmgrep/
|
|
|
31
32
|
- Deno runtime (DSPy RLM uses a Deno-based interpreter)
|
|
32
33
|
- API key for your chosen provider (OpenAI, Anthropic, Gemini, etc.)
|
|
33
34
|
|
|
35
|
+
## Non-text Files (PDF + Office + Media)
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
|
|
39
|
+
How it works:
|
|
40
|
+
- **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).
|
|
41
|
+
- **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.
|
|
42
|
+
- **Images** can be described by a vision model through MarkItDown (OpenAI/Anthropic/Gemini).
|
|
43
|
+
- **Audio** transcription is supported through OpenAI when enabled.
|
|
44
|
+
|
|
45
|
+
Sidecar caching:
|
|
46
|
+
- For images/audio, converted text is cached next to the original file as `<original>.<ext>.md` and reused on later runs.
|
|
47
|
+
- Use `-a/--text` if you want to treat binary files as raw text (UTF‑8 with replacement) and skip conversion.
|
|
48
|
+
|
|
34
49
|
## Install Deno
|
|
35
50
|
|
|
36
51
|
DSPy requires the Deno runtime. Install it with the official scripts:
|
|
@@ -61,6 +76,7 @@ rlmgrep [options] "query" [paths...]
|
|
|
61
76
|
|
|
62
77
|
Common options:
|
|
63
78
|
|
|
79
|
+
- `--answer` return a narrative answer before the grep output
|
|
64
80
|
- `-C N` context lines before/after (grep-style)
|
|
65
81
|
- `-A N` context lines after
|
|
66
82
|
- `-B N` context lines before
|
|
@@ -174,13 +190,6 @@ CLI flags override config values. Model keys are resolved as:
|
|
|
174
190
|
|
|
175
191
|
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`.
|
|
176
192
|
|
|
177
|
-
## Non-text files (PDF, images, audio)
|
|
178
|
-
|
|
179
|
-
- PDF files are parsed with `pypdf`. Each page gets a marker line `===== Page N =====`, and output lines include a `page=N` suffix.
|
|
180
|
-
- 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.
|
|
181
|
-
- Converted image/audio text is cached in sidecar files named `<original>.<ext>.md` next to the original file and reused on subsequent runs.
|
|
182
|
-
- Use `-a/--text` to force binary files to be read as text (UTF-8 with replacement).
|
|
183
|
-
|
|
184
193
|
## Skill (Anthropic-style)
|
|
185
194
|
|
|
186
195
|
A ready-to-copy skill lives in:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|