A utilty 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] [--tree]
Options
--dir
: Specify the directory to list files from (required).--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).--tree
: Print the directory tree at the beginning of the output (optional).
Examples
List files in a directory and include PHP files:
flort --dir /path/to/directory --php
Clean up files in a directory and save the output to a file:
flort --dir /path/to/directory --compress --output output.txt
List files in a directory, include JavaScript and Python files, and print the directory tree:
flort --dir /path/to/directory --js --py --tree
License
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file flort-0.1.3.tar.gz
.
File metadata
- Download URL: flort-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4926a92e25667ab353d3e62724a4ddae2bf4bde5d400a98e0c57e7f82d80f0b6 |
|
MD5 | 5e3857308e53392e1c2fc6c2d3af594d |
|
BLAKE2b-256 | e7b12664bc0fa6d8f5ef91bfc4884c810183e0ed0d7800f7cee5c865dc52b00f |