Skip to main content

A utility to flatten your source code directory into a single file for LLM usage

Project description

flort

flort is a command-line tool for generating a single file with the contents of your code directories.. for use in LLMs.

Installation

You can install flort via pip:

pip install flort

Usage

flort provides various options for listing and cleaning up files in a directory.

flort <directory_path> [--compress] [--output <output_file>] [--php] [--js] [--py] [--c] [--cpp] [--no-tree]

Options

  • --compress: Clean up files by removing unnecessary whitespace (optional).
  • --output: Specify the output file path (default: stdout).
  • --php, --js, --py, --c, --cpp: Include specific file types in the listing (optional).
  • --no-tree: Do not print the directory tree at the beginning of the output (optional).

Examples

List files in a directory and include PHP files:

flort /path/to/directory --php

Clean up files in a directory and save the output to a file:

flort /path/to/directory --compress --output output.txt

List files in a directory, include JavaScript and Python files, and do not print the directory tree:

flort /path/to/directory --js --py --no-tree

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

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

flort-0.1.6.3.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file flort-0.1.6.3.tar.gz.

File metadata

  • Download URL: flort-0.1.6.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for flort-0.1.6.3.tar.gz
Algorithm Hash digest
SHA256 e398682b68b7a8b0b4f9ac5f174ab5fe2c5fc2b88f235cc00d17b62124025367
MD5 6e170fe6e5c59a7d1077b8aacd7b899b
BLAKE2b-256 5dc13f596e288b65eaa5838a4bac248682f9a337c485dedd86a5bd4c3014ba51

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