repod
REPOsitory Dumper:
A command-line tool to generate a Markdown document containing the entire contents of a repository, including directory structure and file contents.
Motivation
This tool was created to make it easier for LLMs to read the contents of an entire repository by converting an entire repository into a single markdown file.
Features
- Directory tree visualization
- Markdown-formatted output
- Customizable file ignoring patterns
Installation
Requires Python 3.10 or later.
pip install repod-cli
Usage
Basic usage:
repod # default to current dir
or,
repod /path/to/repository
This will create a repod.md file containing the repository contents.
Options
Usage: repod [OPTIONS] [REPO_PATH]
Repod: Dump repository contents to single markdown file.
Options:
-o, --output FILE Output file path (default: repod.md)
-i, --ignore-file FILE Path to ignore file (default: .rpdignore)
-p, --preamble FILE Path to preamble file
--no-tree Disable tree structure in output
--encoding TEXT File encoding (default: utf-8)
--help Show this message and exit.
Ignore File
Default ignore patterns:
--- Project-specific files ---
.rpdignore
repod.md
--- Git-related files ---
.git/*
.gitignore
--- OS-specific metadata ---
.DS_Store
Thumbs.db
Desktop.ini
--- IDE/editor settings ---
.idea/*
.vscode/*
.project
.classpath
.settings/*
--- Python-related caches/build artifacts ---
.tox/*
*.pyc
__pycache__/*
.mypy_cache/*
.ruff_cache/*
*.whl
.env*
.venv/*
--- Archives ---
*.tar
*.tar.gz
--- Media files (images) ---
*.png
*.jpeg
*.jpg
--- Log files, binaries, lock files ---
*.log
*bin/*
*.lock
--- Node.js dependencies ---
*/node_modules/*
You can specify files and directories to additionally ignore using a .rpdignore file. The file uses glob patterns, similar to .gitignore:
# Example .rpdignore
node_modules/*
Example Output
The generated markdown file from this repo: repod.md
Requirements
- Python >=3.10
- click >=8.1.8
- rich >=13.9.4
- treelib >=1.7.0
License
MIT License
Metadata
Release files for repod-cli 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repod_cli-0.0.4.tar.gz | 6.3 kB | Without provenance | Details for repod_cli-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repod_cli-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for repod_cli-0.0.4-py3-none-any.whl |
Total release size: 13.1 kB
Release files / repod_cli-0.0.4.tar.gz
| Download URL | repod_cli-0.0.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
024de8bf0619765f2655713551ceaad10211aaf1b4e2bcf72266ff9dea722a35
|
|
BLAKE2b-256 checksum How to use checksums |
1d08a6789d66f1f38b263439d07681529011e9cf0991c2667554f1c424219384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.24
|
Release files / repod_cli-0.0.4-py3-none-any.whl
| Download URL | repod_cli-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7115b2d92388a36fb3983e8e661c69e0b65d7ea8b9e24709c40dbd18f8cb1879
|
|
BLAKE2b-256 checksum How to use checksums |
cccad2ddcd64d1f73676e4a37b34471b14b6d52c35898c172ed7cde0aef34b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.24
|
Security for repod-cli 0.0.4
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.