Skip to main content

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


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.3.tar.gz (5.4 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.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for repod_cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 76c32c8b8c4460e32af7accb9df450b00a38de49e833ab7b1e869ddce14472d6
MD5 ea630889324a2732a444b589ce3ad57b
BLAKE2b-256 b17ec498e697ba6e9c218229f88d481ec64106f90c0f67d8ce6f8d1a6a93e179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: repod_cli-0.0.3-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

Hashes for repod_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75f8a44213f499aec3bbb0fddcc5ba35143498c9348d622852249bc1c4e1d46f
MD5 fb124822abea659d16354fb1f4605b2d
BLAKE2b-256 f147079a3bdabd3cd1a7b0ebf232f05853340fc393d261df904a7d468e37e86f

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