Skip to main content

Flatten a project into a single LLM-friendly text dump

Project description

produm

produm is a tiny CLI tool that flattens any small project into a single, LLM-friendly text file. Useful when you want to show an entire codebase to ChatGPT or other LLMs without manually copying files. This was created for Python projects, but it could be generalized for other projects.

Features

  • Generates a single .txt dump with:
    • Directory tree
    • File list
    • All text-based file contents
  • Respects .gitignore (can be disabled)
  • Skips binary files automatically
  • Supports include/exclude rules
  • Optional line numbers for code review and debugging
  • Output name auto-generated unless specified

Installation

uv add produm

or

pip install produm

Usage

Basic

produm

or

produm .

will create the dump file from and in the current directory.

Advanced

Specify output:

produm . -o dump.txt

Only include Python files:

produm . --include-ext .py

Skip the directory tree:

produm . --no-tree

License

See 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

produm-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

produm-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file produm-0.1.1.tar.gz.

File metadata

  • Download URL: produm-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for produm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7663bb8b06817cdc3669b8c8649487e6852821ded29b57a11d888538c79a0009
MD5 f116138c82450ea91b8133a6f9c3699d
BLAKE2b-256 9872f33ded7ed6b81df2414209e397be64b9d133170a9560ea55ee542bb58500

See more details on using hashes here.

File details

Details for the file produm-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: produm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for produm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0261c9ef81beeb271904b101b60faf72f1f5a62e2ac6206a3523a4b97844189
MD5 27bd57f5b38b10bc88649267b9e38814
BLAKE2b-256 fdb97e75e1de63ea96bafd6a75fcb3146a152d796965c3db17bf3e715281498c

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