Skip to main content

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

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 when Cargo.toml and a src/main.rs (or [[bin]]) are present.
  • --json: Output machine-readable JSON (supported by list and info).

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.

Metadata

Release files for ragstrap 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ragstrap 0.1.3
File Size Uploaded Provenance Actions
ragstrap-0.1.3.tar.gz 1.1 MB Without provenance Details for ragstrap-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ragstrap 0.1.3
File Interpreter ABI Platform Actions
ragstrap-0.1.3-py3-none-any.whl Python 3 none any Details for ragstrap-0.1.3-py3-none-any.whl

Total release size: 1.1 MB

Release files / ragstrap-0.1.3.tar.gz

Download URL ragstrap-0.1.3.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d2cd49cf206c1771171465d04ddc1ccb2d414460473c660326c2c672fcc5d25f
BLAKE2b-256 checksum
How to use checksums
53400e0895782540f19844ea22a2bfefeca6c169d07be92b69fd294634875e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / ragstrap-0.1.3-py3-none-any.whl

Download URL ragstrap-0.1.3-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2f1ea6d6bf18c5ed35d03f393ecc56e3d82df1247c976e775615bc81aed5415
BLAKE2b-256 checksum
How to use checksums
6575ed6e719b357285a8731172b1c2b0ba146469d0725fa7d5a36be3914fe430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Security for ragstrap 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page