rlmgrep 0.1.7__py3-none-any.whl → 0.1.9__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 CHANGED
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.7"
2
+ __version__ = "0.1.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.7
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 --python 3.11 rlmgrep
20
+ uv tool install rlmgrep
21
21
  # or from GitHub:
22
- # uv tool install --python 3.11 git+https://github.com/halfprice06/rlmgrep.git
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 API keys read" rlmgrep/
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:
@@ -1,4 +1,4 @@
1
- rlmgrep/__init__.py,sha256=-w_IYq2qirUd-aSQcHEODBy3Q_jqwhPRWywcT_M1mMc,48
1
+ rlmgrep/__init__.py,sha256=9vXBF6zcAZgaxKBkU8Sh3RvsIW50FOnqUUndJYFZ4oM,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.7.dist-info/METADATA,sha256=Rq6XsCDbifQcXrvTGWAYvwbIFBlNDJ0jn0gdDpOYplQ,6753
11
- rlmgrep-0.1.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
12
- rlmgrep-0.1.7.dist-info/entry_points.txt,sha256=UV6QkEbkwBO1JJ53mm84_n35tVyOczPvOQ14ga7vrCI,45
13
- rlmgrep-0.1.7.dist-info/top_level.txt,sha256=gTujSRsO58c80eN7aRH2cfe51FHxx8LJ1w1Y2YlHti0,8
14
- rlmgrep-0.1.7.dist-info/RECORD,,
10
+ rlmgrep-0.1.9.dist-info/METADATA,sha256=Ak-s4aY5rK71LLylJmFNqkgXNHVIbqQnCeUUpl7gwuk,7333
11
+ rlmgrep-0.1.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
12
+ rlmgrep-0.1.9.dist-info/entry_points.txt,sha256=UV6QkEbkwBO1JJ53mm84_n35tVyOczPvOQ14ga7vrCI,45
13
+ rlmgrep-0.1.9.dist-info/top_level.txt,sha256=gTujSRsO58c80eN7aRH2cfe51FHxx8LJ1w1Y2YlHti0,8
14
+ rlmgrep-0.1.9.dist-info/RECORD,,