Skip to main content

A tool to combine multiple text files into one for LLM training and prompts

Project description

TextMeld

A CLI tool that combines multiple text files into one, making it perfect for LLM training data preparation and prompt engineering.

Installation

pip install textmeld

Usage

# Basic usage
textmeld /path/to/your/directory

# Set maximum directory depth
textmeld /path/to/your/directory --max-depth 3

The tool will:

  1. Respect .gitignore patterns if present
  2. Include README.md content if available
  3. Combine all text files into a single output
  4. Skip binary and hidden files automatically

Supported File Types

  • Markdown (.md)
  • Text (.txt)
  • YAML (.yaml, .yml)
  • JSON (.json)
  • Python (.py)
  • JavaScript (.js)
  • TypeScript (.ts)
  • JSX/TSX (.jsx, .tsx)
  • HTML (.html)
  • CSS (.css)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

textmeld-0.2.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

textmeld-0.2.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file textmeld-0.2.4.tar.gz.

File metadata

  • Download URL: textmeld-0.2.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.0 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for textmeld-0.2.4.tar.gz
Algorithm Hash digest
SHA256 fa01f0277a76b8acc4ac80e6ff329a793378dd1dc0ee505b488c32775d8de1ca
MD5 a93dc161d12e62013fc4172e641e2107
BLAKE2b-256 dbaa723bdeecaa870d48e77b2321032971398bccffa04badd86dfc9840b5c172

See more details on using hashes here.

File details

Details for the file textmeld-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: textmeld-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.0 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for textmeld-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf729a1848bc718556b3d7db8eeacdc7fc4134f873309661dc1249a302daed1
MD5 6f292aa9b8afe2d1d56073ea8fb8525d
BLAKE2b-256 e5852075bf8ebbc8250c1397c29fc32ef8b427431fe3a52468be22676fd9f4b3

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