Skip to main content

PyPI Downloads

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)

Source distribution for repod-cli 0.0.4
File Size Uploaded
repod_cli-0.0.4.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for repod-cli 0.0.4
File Interpreter ABI Platform
repod_cli-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

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