Obtains the relative path of all files in the TreeScript.
Project description
TreeScript Files
treescript-files is a command-line tool built in Python designed to interpret a unique file format known as "treescript." This format is used to describe file and folder directory structures. The primary function of treescript-files is to parse a treescript file and output a comprehensive list of file paths defined within the script to the standard output. An optional parameter allows users to prefix all file paths with a specified parent directory, enhancing the tool's flexibility in various file management tasks.
Features
- Parse Treescript: Efficiently reads and processes treescript files.
- Output File Paths: Prints the complete list of file paths from the treescript.
- Directory Prefixing: Optional addition of a parent directory to all file paths.
Installation
To install treescript-files, you will need Python installed on your system. The tool can be installed directly via pip:
pip install treescript-files
Alternatively, you can clone this repository and install the tool manually:
git clone https://github.com/yourusername/treescript-files.git
cd treescript-files
python setup.py install
Usage
To use treescript-files, run the following command in your terminal:
treescript-files <path_to_treescript_file>
Options
- --parent
<directory>: Prefixes all output file paths with the specified directory.
Example
Given a treescript file named example.treescript, you can display the file paths as follows:
treescript-files example.treescript
To prefix the paths with a parent directory src/:
treescript-files --parent src/ example.treescript
Contributing
Contributions to treescript-files are welcome!
License
treescript-files is open-source software licensed under the GPLv3 License. See the LICENSE file for more details.
Project details
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 treescript_files-0.2.5.tar.gz.
File metadata
- Download URL: treescript_files-0.2.5.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb918a53931d5c76b2d953324baea719f275dd367531fee6c0c1a641009f891e
|
|
| MD5 |
bd22310c68f5087dcd36e96fc1d30f03
|
|
| BLAKE2b-256 |
32d32ec58a8474fbfb91e3abd2b1fb4c9ba297abd6cade90008ace57d00b616e
|
Provenance
The following attestation bundles were made for treescript_files-0.2.5.tar.gz:
Publisher:
publish.yml on DK96-OS/treescript-files
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
treescript_files-0.2.5.tar.gz -
Subject digest:
eb918a53931d5c76b2d953324baea719f275dd367531fee6c0c1a641009f891e - Sigstore transparency entry: 653323851
- Sigstore integration time:
-
Permalink:
DK96-OS/treescript-files@a95ca5262b945c6d60af6e71fc9d9d349ae46818 -
Branch / Tag:
refs/tags/v0.2.5 - Owner: https://github.com/DK96-OS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a95ca5262b945c6d60af6e71fc9d9d349ae46818 -
Trigger Event:
release
-
Statement type:
File details
Details for the file treescript_files-0.2.5-py3-none-any.whl.
File metadata
- Download URL: treescript_files-0.2.5-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2411f3e8e5473baddbaf20ae914bd81ba8e7b07475b4ae2599ba54b198bb641a
|
|
| MD5 |
fc621660760048a054409ce09de21345
|
|
| BLAKE2b-256 |
0f2664069467a9d4143f19ead5ae7104c843ee688d308429639e3a84cc9d01ca
|
Provenance
The following attestation bundles were made for treescript_files-0.2.5-py3-none-any.whl:
Publisher:
publish.yml on DK96-OS/treescript-files
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
treescript_files-0.2.5-py3-none-any.whl -
Subject digest:
2411f3e8e5473baddbaf20ae914bd81ba8e7b07475b4ae2599ba54b198bb641a - Sigstore transparency entry: 653323852
- Sigstore integration time:
-
Permalink:
DK96-OS/treescript-files@a95ca5262b945c6d60af6e71fc9d9d349ae46818 -
Branch / Tag:
refs/tags/v0.2.5 - Owner: https://github.com/DK96-OS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a95ca5262b945c6d60af6e71fc9d9d349ae46818 -
Trigger Event:
release
-
Statement type: