REPOsitory Dumper
Project description
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
--help Show this message and exit.
Ignore File
Default ignore patterns:
.rpdignore
repod.md
.git/*
.gitignore
.github/*
.tox/*
*.pyc
__pycache__/*
.mypy_cache/*
.ruff_cache/*
*.whl
*.tar
*.tar.gz
*.env*
*.png
*.jpeg
*.jpg
*bin/*
*.lock
.venv/*
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
Project details
Release history Release notifications | RSS feed
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 repod_cli-0.0.2.tar.gz.
File metadata
- Download URL: repod_cli-0.0.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
334d35ba318426adc9a942ff3bee6e41390537d23edbcae341f24963f0e7e7fc
|
|
| MD5 |
cd273272357177b2f784792243f2a6d6
|
|
| BLAKE2b-256 |
5c3ec45a52d113cce9f96fcc155cb94bc743e43e4ea97152c297e40f9e7fb959
|
File details
Details for the file repod_cli-0.0.2-py3-none-any.whl.
File metadata
- Download URL: repod_cli-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c561a721f9651d0a24a57e3f08a48768ae12d8f1c009aa2d941bdb7943efc17
|
|
| MD5 |
befb615b5f79c68db0336089905b2ec0
|
|
| BLAKE2b-256 |
976cd684431ab2c7be8268e4f1ab69f241e0dd5ae068ecaca0bcc46da1bd520d
|