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 '.[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.1.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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arbori-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f219af69850b7f4526561393575b3dd3cf8a47e206bc6bbcec0387f684672147
MD5 4f83534a04423b0999ace79d6b3c9585
BLAKE2b-256 c4c2215862ed837019a72a49e20fd94a2d2d8a5c753eb8995e078d7fca4794c4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: arbori-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa3ff64e5af9231f2152be8b4b9359063c66fe35e89381b11e6ae1dd0eccab59
MD5 ae3ec08dc70d60f496ab97cf93851c1f
BLAKE2b-256 415dcb8bf54d1f2666073d05a1e84955ef4c75c2a58d28a7598bf21b0f12c01d

See more details on using hashes here.

Provenance

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