Skip to main content

REPOsitory Dumper

Project description

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

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

repod_cli-0.0.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repod_cli-0.0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file repod_cli-0.0.4.tar.gz.

File metadata

  • Download URL: repod_cli-0.0.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.24

File hashes

Hashes for repod_cli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 024de8bf0619765f2655713551ceaad10211aaf1b4e2bcf72266ff9dea722a35
MD5 a888f3e9852e31e502fd7840cfcfeff7
BLAKE2b-256 1d08a6789d66f1f38b263439d07681529011e9cf0991c2667554f1c424219384

See more details on using hashes here.

File details

Details for the file repod_cli-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: repod_cli-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.24

File hashes

Hashes for repod_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7115b2d92388a36fb3983e8e661c69e0b65d7ea8b9e24709c40dbd18f8cb1879
MD5 6413f0dca09d1e74e309665e68f4e72c
BLAKE2b-256 cccad2ddcd64d1f73676e4a37b34471b14b6d52c35898c172ed7cde0aef34b71

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