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

Install from PyPI:

pip install arbori

Usage

Basic usage:

arbori input.txt output/directory/

Contributing

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

  1. Fork and clone 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 '.[test]'
  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.2.0.tar.gz (6.4 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.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for arbori-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e5ef465a81b0ab7eac3dc96b29d572b7ad66c85dff0b174d2022dc67f25804fd
MD5 83bada6bc10f6b5e3a4055639abdd9e1
BLAKE2b-256 829343157644ca196610616e1dbc67dd714f924ff32e675dc4b288e0eb754b72

See more details on using hashes here.

Provenance

The following attestation bundles were made for arbori-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: arbori-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fdd0e262b18d4628284b8b66ceb98801e1288b9073f23ed80b35e5e346c9a8
MD5 0d88b42a1e410a3248393ee7ec5b9642
BLAKE2b-256 96f7db219af8fb22507935e4fc6e7bbeec5bcdd9a821684bff2323124534ebc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for arbori-0.2.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