A tool to generate a json file tree structure of a project with .gitignore support
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prft_json-1.0.0.tar.gz.
File metadata
- Download URL: prft_json-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9be6a17549d58df1d69160fe3ae5361a6e573b949f45af1cc27b522e7453535c
|
|
| MD5 |
1c45d6471d5bd812c89967b7616a55ff
|
|
| BLAKE2b-256 |
e9153568bdf7a9ca656b527d863d0dad0c60c66a5942b649b0c41bb7d033dbf3
|
File details
Details for the file prft_json-1.0.0-py3-none-any.whl.
File metadata
- Download URL: prft_json-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e44e4789c4537ffd1cbdf6935e444b81fb306dd5edf12d88b23074a6358514b
|
|
| MD5 |
821e0b6e22cb7f2ad8aa05901cb1c625
|
|
| BLAKE2b-256 |
7909be5dc2168c4d201a0dac634a1339c0293ca58d0da87370c348c0cd06f9d0
|