Skip to main content

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

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.1.tar.gz (20.2 kB 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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ragstrap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5e3540d8e27bd32c2b3678ff1b5025b3741dc8edf397410c7cd29a406cab7cc4
MD5 5960ee6a12a32c2934cdae59f150be84
BLAKE2b-256 b7583492c2cb20eb5160d4cb17c69d69566ec2e350ab9a6f2414ebcc39977c49

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ragstrap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a79bc49ed66a0a689244a3acca8848b978b55adae896842527b1b990c0d355c8
MD5 846932865713e28497fa12a52e147f4a
BLAKE2b-256 23d60c56021335aa8aeffde173b2be9c7d461c6ba2d30c5e9752e453f00c7c95

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