Skip to main content

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

treescript_files-0.2.6.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treescript_files-0.2.6-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file treescript_files-0.2.6.tar.gz.

File metadata

  • Download URL: treescript_files-0.2.6.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for treescript_files-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2d5d89a1eefcf3d00fb39c1c8e4c9c238f4510c385542fd8e2952237548bde01
MD5 844649e6f7c14784a42ff631fb896f0f
BLAKE2b-256 897a6c7eb3eb974caf1089b31bad6aeda6b501d2b4596aae15849205d1387696

See more details on using hashes here.

Provenance

The following attestation bundles were made for treescript_files-0.2.6.tar.gz:

Publisher: publish.yml on DK96-OS/treescript-files

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file treescript_files-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for treescript_files-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 054bafab7e71d550e244b2d2c04d0be441d6defc8ee8bf1d27981d669e4739db
MD5 81a72c1286c8c640b6fd84b3a0a2e4d6
BLAKE2b-256 ba258fc4dfe381b7e733b5cb50d9d5cfe9766d620bf810550ddb3fcf74809b64

See more details on using hashes here.

Provenance

The following attestation bundles were made for treescript_files-0.2.6-py3-none-any.whl:

Publisher: publish.yml on DK96-OS/treescript-files

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page