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

Uploaded Python 3

File details

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

File metadata

  • Download URL: textmeld-0.2.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for textmeld-0.2.2.tar.gz
Algorithm Hash digest
SHA256 527b61f60588bd989c970975d7fa635138fdefab6f965113ef5a2b7f8c979758
MD5 59ff76f5735009f0f31e52ffa35f66ea
BLAKE2b-256 10ce37bae84a487f492ba95b041baf93002b86b8a276e4c6ac1bd21f22c46bf2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for textmeld-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5635b8c323e7fc41b6ca49cf326be5dcf43aa3f154231e354947a69d6c26bfde
MD5 6907267ccb0f299d97cf8bb7299327e3
BLAKE2b-256 400b9a7c385e714de112189828b200a17b4edf25edd41148adecc42f7aec8387

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