Project File Tree JSON (prft-json)
Modified version of the prft for use primarily in the RAG LLM.
Installation
Install prft-json via pip:
pip install prft-json
Usage
Use prft in the terminal to display a project’s file structure.
Basic Command
prft-json path_to_project
You can also use . to specify the current directory if you are in the project directory:
prft-json .
Options
- --no-ignore Include files and directories that would otherwise be ignored based on patterns in .gitignore. By default, files and directories matching .gitignore patterns are excluded.
- --no-dot Include hidden files and directories (those starting with a dot .). By default, dotfiles and dotfolders are excluded unless explicitly listed in the .gitignore file.
- --prefix
<string>Specify a prefix for the tree structure output. This option is primarily for visual representation and formatting purposes. The default is a single space (' '). - --output-name
<filename>Specify the name of the output JSON file. The default filename is result.json. You do not need to include the .json extension, as it will be added automatically.
Example:
prft-json path_to_project --no-ignore --no-dot
Example Output
[
{
"prft_json": [
"__init__.py",
"prft.py"
]
},
".gitignore",
"LICENSE",
"README.md",
"pyproject.toml"
]
License
This project is licensed under the MIT License.
Author
Created by trum-ok :p
Metadata
Release files for prft-json 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prft_json-1.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prft_json-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / prft_json-1.0.0.tar.gz
| Download URL | prft_json-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be6a17549d58df1d69160fe3ae5361a6e573b949f45af1cc27b522e7453535c
|
|
BLAKE2b-256 checksum How to use checksums |
e9153568bdf7a9ca656b527d863d0dad0c60c66a5942b649b0c41bb7d033dbf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.18
|
Release files / prft_json-1.0.0-py3-none-any.whl
| Download URL | prft_json-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e44e4789c4537ffd1cbdf6935e444b81fb306dd5edf12d88b23074a6358514b
|
|
BLAKE2b-256 checksum How to use checksums |
7909be5dc2168c4d201a0dac634a1339c0293ca58d0da87370c348c0cd06f9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.18
|