Skip to main content

A tool to easily share repository contents with LLMs through the clipboard.

Project description

repo2llm

A simple tool to copy repository contents to your clipboard, useful for pasting into an LLM like Claude or ChatGPT.

Installation

pip install repo2llm

Usage

Basic Usage

# Process current directory
repo2llm .

# Process specific directory
repo2llm /path/to/your/repo

Advanced Options

# Add custom ignore patterns
repo2llm . --ignore "*.log" --ignore "temp/*"

# Disable preview
repo2llm . --no-preview

# Customize preview length
repo2llm . --preview-length 300

# Use custom config file
repo2llm . --config my-config.txt

Configuration

Default Ignore Patterns

The tool automatically ignores common development files and directories. See repo2llm/constants.py for the default list.

Config File

You can create a .repo2llm file in your repository root to specify custom ignore patterns:

# Development directories
.github/
.vscode/
node_modules/

# Build artifacts
dist/
build/
*.pyc

# Custom patterns
temp/
*.bak

The config file supports:

  • One pattern per line
  • Comments (lines starting with #)

Contributing

Contributions are welcome, feel free to submit a PR.

Release

To release a new version, run the scripts/version.py script:

# For a patch update (0.1.0 -> 0.1.1)
poetry run python scripts/version.py patch --tag

# For a minor update (0.1.1 -> 0.2.0)
poetry run python scripts/version.py minor --tag

# For a major update (0.2.0 -> 1.0.0)
poetry run python scripts/version.py major --tag

License

MIT

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

repo2llm-0.3.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

repo2llm-0.3.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file repo2llm-0.3.0.tar.gz.

File metadata

  • Download URL: repo2llm-0.3.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for repo2llm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3aac4164c11a684026432c3d148a0bba75fbf01a1cff99a4c104bab7bea60f30
MD5 8e84e142236ab0f8de0d4264702a2300
BLAKE2b-256 5bdfb8074f5287b4c2694db881294472efed77292e3ed53391c8a5ee7e539935

See more details on using hashes here.

File details

Details for the file repo2llm-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: repo2llm-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for repo2llm-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd75239b5fda75ffa8ee4e4a048ac4221b8af719ff7c0a8e265019cad907b045
MD5 ad8f33353224b0da8c03f9c69581ed8e
BLAKE2b-256 8ad6187fb582afaaa4ac40b4169b39004389d2fea2470c8a193394196c3d33c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page