Skip to main content

Create a directory structure given a simple input format.

Project description

Arbori

A lightweight command line tool that generates folder structures from simple text files. Simply provide an input file with your desired folder hierarchy using indentation (2 spaces) to indicate nesting levels, specify an output directory, and arbori will create the complete folder structure for you.

The name is inspired by arboriculture - the cultivation, management, and study of individual trees.

Example

Input file (structure.txt):

parent
  child1
    grandchild1
    grandchild2
  child2
    grandchild3
    grandchild4
  child3
    grandchild5
    grandchild6

Run arbori:

arbori create structure.txt output-directory

Will generate the following folders.

.
└── parent
    ├── child1
    │   ├── grandchild1
    │   └── grandchild2
    ├── child2
    │   ├── grandchild3
    │   └── grandchild4
    └── child3
        ├── grandchild5
        └── grandchild6

Installation

Clone the repository and install using pip:

git clone https://github.com/harleyjwilson/arbori.git
cd arbori
pip install .

Usage

Basic usage:

arbori input.txt output/directory/

Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository
  2. Set up your Python virtual environment
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies
pip install .
pip install -e '.[dev]'
  1. Create your feature branch
git checkout -b feature/new-feature
  1. Development Guidelines:
  • Write tests for new features using pytest
  • Add documentation for new features
  1. Submit a Pull Request:
  • GitHub Actions will lint, format, and test code
  • Ensure all tests pass
  • Update documentation if needed
  • Pull requests without tests will not be reviewed

License

This project is licensed under the MIT 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

arbori-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

arbori-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file arbori-0.1.0.tar.gz.

File metadata

  • Download URL: arbori-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for arbori-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f80e1d282e9f6a839844920b9a036bef7aeab9793ed73ff4a037ce9b71d8094
MD5 ef562955699f214d60914f6c830f9597
BLAKE2b-256 d6a60ae5729cbb17288616488c0bb144aae108803a2b72f24898ba0fbec32d66

See more details on using hashes here.

Provenance

The following attestation bundles were made for arbori-0.1.0.tar.gz:

Publisher: publish.yml on harleyjwilson/arbori

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

File details

Details for the file arbori-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arbori-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for arbori-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2afe953ff35d6dd6f0e1eeadfd5f6cfb0bd6bc71b2c64b8964fece5ca84b86
MD5 488a96acd93ac26ab0deb6c7f8df2c61
BLAKE2b-256 947ec669876dbcfe9d99f60c377e1490ef8ce23f5241e7201bf323cc10516144

See more details on using hashes here.

Provenance

The following attestation bundles were made for arbori-0.1.0-py3-none-any.whl:

Publisher: publish.yml on harleyjwilson/arbori

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