Fetch, distill, and store authoritative references for external libraries
Project description
ragstrap 
ragstrap is a CLI that builds local reference snapshots from GitHub repositories for
RAG workflows. It downloads the repo archive into a references/<name>/raw folder,
records metadata, generates an index.md, and can optionally capture --help output
for Rust CLIs.
Install (preferred)
uv tool install ragstrap
Install from source
git clone https://github.com/erichamiter/ragstrap.git
cd ragstrap
uv tool install -e .
Usage
ragstrap fetch https://github.com/OWNER/REPO
Other commands:
ragstrap list
ragstrap info <name>
ragstrap update <name>
Common flags:
--name/-n: Name the reference directory (defaults to the repo name).--force/-f: Overwrite an existing reference directory.--capture-cli/--no-capture-cli: Capture CLI help output; auto-enabled for Rust CLIs whenCargo.tomland asrc/main.rs(or[[bin]]) are present.--json: Output machine-readable JSON (supported bylistandinfo).
Output layout
references/<name>/
meta.json
index.md
raw/...
cli/ (optional help output)
Notes
- Python >= 3.9 is required.
- GitHub API rate limits apply; set
GITHUB_TOKENto increase the limit. - CLI capture for Rust runs
cargo build --releaseand requires a Rust toolchain.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ragstrap-0.1.3.tar.gz.
File metadata
- Download URL: ragstrap-0.1.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2cd49cf206c1771171465d04ddc1ccb2d414460473c660326c2c672fcc5d25f
|
|
| MD5 |
143df17a89e52da5372a6dfafe7333d3
|
|
| BLAKE2b-256 |
53400e0895782540f19844ea22a2bfefeca6c169d07be92b69fd294634875e0b
|
File details
Details for the file ragstrap-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ragstrap-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f1ea6d6bf18c5ed35d03f393ecc56e3d82df1247c976e775615bc81aed5415
|
|
| MD5 |
a52f831158304fa50ceefd6dd23f44e5
|
|
| BLAKE2b-256 |
6575ed6e719b357285a8731172b1c2b0ba146469d0725fa7d5a36be3914fe430
|