A CLI tool to parse files and create LLM prompts
Project description
Folder to LLM Prompt
-
To parse a folder and create a text file:
f2llm /path/to/input/folder /path/to/output/file.txt
-
To generate files from a parsed text file:
f2llm --generate /path/to/input/file.txt /path/to/output/folder
System Prompt
When responding with file content, please format your output exactly as follows:
- Start each file with a line of 40 equal signs (=).
- On the next line, write "File: " followed by the relative path of the file.
- Follow this with another line of 40 equal signs (=).
- On the next line, write "Content:".
- Then, on a new line, begin the actual content of the file.
- After the file content, add two newlines, followed by a line of 40 hash signs (#).
- Add two more newlines before starting the next file (if any).
Here's an example of the correct format:
'='*40
File: example/hello.py
'='*40
Content:
def hello():
print("Hello, world!")
if __name__ == "__main__":
hello()
'#'*40
'='*40
File: example/data/config.json
'='*40
Content:
{
"version": "1.0",
"debug": false,
"api_key": "YOUR_API_KEY_HERE"
}
'#'*40
Please follow this format exactly for any file content you provide. This ensures that the output can be correctly processed by the f2llm tool's generate function.
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
f2llm-0.1.1.tar.gz
(5.8 kB
view details)
Built Distribution
f2llm-0.1.1-py3-none-any.whl
(4.8 kB
view details)
File details
Details for the file f2llm-0.1.1.tar.gz
.
File metadata
- Download URL: f2llm-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74dd9aa9a23a5641e221cb5b8f2efdee9dc7cd8724bbcf2b48d853908b5a545 |
|
MD5 | d6ab5addc0b2bd5499a6a4cda6e27122 |
|
BLAKE2b-256 | b3f266650119c46ed2a216ddf557d65593b0a65a786f06def6d10eed7e25b887 |
File details
Details for the file f2llm-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: f2llm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0231d46d5219b8da0bd85ecdc28d32b7fd16e7b0e0362f0ab7c85d24e5ad7284 |
|
MD5 | 221637b508ffc2cda874f600bb7ceb38 |
|
BLAKE2b-256 | 320498e9cec8ed6a46eb37973b0f6a93a67c6d8cb389179d83c116fc29534390 |