Skip to main content

Fetch, distill, and store authoritative references for external libraries

Project description

ragstrap ragstrap mascot

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

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 when Cargo.toml and a src/main.rs (or [[bin]]) are present.

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_TOKEN to increase the limit.
  • CLI capture for Rust runs cargo build --release and 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

ragstrap-0.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ragstrap-0.1.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file ragstrap-0.1.2.tar.gz.

File metadata

  • Download URL: ragstrap-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for ragstrap-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8eab1c49eb348673783047be3f55cbb1d59e71baeb5f76166cf068de2419cdb0
MD5 650b6f28ccd48cbc65c0a4ce8e2cd86e
BLAKE2b-256 e39b3e1b4909dbfc541a9be93408f2faa2bfe32cfd73d0bbf7aa0bf6398a9bbf

See more details on using hashes here.

File details

Details for the file ragstrap-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ragstrap-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for ragstrap-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b51392574c1a6504a16da2c597fd713b7f1b0c93207879556d361ba060758d28
MD5 9b14ac15f8b948836cae637c671c5ab9
BLAKE2b-256 56b754b27950e9f85bbc5959307a23c265e2a4ab3d47ee775a3673c3bc22fddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page