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.2.tar.gz (6.8 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.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for produm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b611d23e3a4e3a29db41a1c8840bf083da37bacf63e5c5a4c22e85dd8006e846
MD5 ecaef22f15b3ec768c1ec5fbb5c24778
BLAKE2b-256 b1a9b1bce11f2b9b17a5c01aed0eb5603a72a90545ba07b18fbe9e581282edd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: produm-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac66e220a4f30d3a358d7150b23e950772d76e626342d384e62760687b9e9bce
MD5 c7e293750d8aeaf7237a80ffa2c3475a
BLAKE2b-256 e59a56f92a98c56eccd9353a78f87a8261de4c6e2f7891c02ce47451827cd777

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