f2llm


Namef2llm JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryA CLI tool to parse files and create LLM prompts
upload_time2024-06-26 19:41:32
maintainerNone
docs_urlNone
authorMate Dravucz
requires_python>=3.9
licenseMIT
keywords cli llm file parsing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Folder to LLM Prompt

1. To parse a folder and create a text file:
   ```
   f2llm /path/to/input/folder /path/to/output/file.txt
   ```

2. 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:

1. Start each file with a line of 40 equal signs (=).
2. On the next line, write "File: " followed by the relative path of the file.
3. Follow this with another line of 40 equal signs (=).
4. On the next line, write "Content:".
5. Then, on a new line, begin the actual content of the file.
6. After the file content, add two newlines, followed by a line of 40 hash signs (#).
7. 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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "f2llm",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "cli, llm, file parsing",
    "author": "Mate Dravucz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b3/f2/66650119c46ed2a216ddf557d65593b0a65a786f06def6d10eed7e25b887/f2llm-0.1.1.tar.gz",
    "platform": null,
    "description": "# Folder to LLM Prompt\n\n1. To parse a folder and create a text file:\n   ```\n   f2llm /path/to/input/folder /path/to/output/file.txt\n   ```\n\n2. To generate files from a parsed text file:\n   ```\n   f2llm --generate /path/to/input/file.txt /path/to/output/folder\n   ```\n\n\n### System Prompt\n\nWhen responding with file content, please format your output exactly as follows:\n\n1. Start each file with a line of 40 equal signs (=).\n2. On the next line, write \"File: \" followed by the relative path of the file.\n3. Follow this with another line of 40 equal signs (=).\n4. On the next line, write \"Content:\".\n5. Then, on a new line, begin the actual content of the file.\n6. After the file content, add two newlines, followed by a line of 40 hash signs (#).\n7. Add two more newlines before starting the next file (if any).\n\nHere's an example of the correct format:\n\n```\n'='*40\nFile: example/hello.py\n'='*40\nContent:\ndef hello():\n    print(\"Hello, world!\")\n\nif __name__ == \"__main__\":\n    hello()\n\n\n'#'*40\n\n\n'='*40\nFile: example/data/config.json\n'='*40\nContent:\n{\n    \"version\": \"1.0\",\n    \"debug\": false,\n    \"api_key\": \"YOUR_API_KEY_HERE\"\n}\n\n\n'#'*40\n```\n\nPlease 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.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A CLI tool to parse files and create LLM prompts",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/mattdravucz/f2llm",
        "Issues": "https://github.com/mattdravucz/f2llm/issues"
    },
    "split_keywords": [
        "cli",
        " llm",
        " file parsing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "320498e9cec8ed6a46eb37973b0f6a93a67c6d8cb389179d83c116fc29534390",
                "md5": "221637b508ffc2cda874f600bb7ceb38",
                "sha256": "0231d46d5219b8da0bd85ecdc28d32b7fd16e7b0e0362f0ab7c85d24e5ad7284"
            },
            "downloads": -1,
            "filename": "f2llm-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "221637b508ffc2cda874f600bb7ceb38",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4804,
            "upload_time": "2024-06-26T19:41:30",
            "upload_time_iso_8601": "2024-06-26T19:41:30.608481Z",
            "url": "https://files.pythonhosted.org/packages/32/04/98e9cec8ed6a46eb37973b0f6a93a67c6d8cb389179d83c116fc29534390/f2llm-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3f266650119c46ed2a216ddf557d65593b0a65a786f06def6d10eed7e25b887",
                "md5": "d6ab5addc0b2bd5499a6a4cda6e27122",
                "sha256": "f74dd9aa9a23a5641e221cb5b8f2efdee9dc7cd8724bbcf2b48d853908b5a545"
            },
            "downloads": -1,
            "filename": "f2llm-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d6ab5addc0b2bd5499a6a4cda6e27122",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5822,
            "upload_time": "2024-06-26T19:41:32",
            "upload_time_iso_8601": "2024-06-26T19:41:32.252664Z",
            "url": "https://files.pythonhosted.org/packages/b3/f2/66650119c46ed2a216ddf557d65593b0a65a786f06def6d10eed7e25b887/f2llm-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-26 19:41:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mattdravucz",
    "github_project": "f2llm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "f2llm"
}
        
Elapsed time: 0.45661s