Skip to main content

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.

Metadata

Release files for arbori 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arbori 0.2.0
File Size Uploaded Provenance
arbori-0.2.0.tar.gz 6.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for arbori 0.2.0
File Interpreter ABI Platform
arbori-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / arbori-0.2.0.tar.gz

Download URL arbori-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e5ef465a81b0ab7eac3dc96b29d572b7ad66c85dff0b174d2022dc67f25804fd
BLAKE2b-256 checksum
How to use checksums
829343157644ca196610616e1dbc67dd714f924ff32e675dc4b288e0eb754b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2024.

Transparency log

Release files / arbori-0.2.0-py3-none-any.whl

Download URL arbori-0.2.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2fdd0e262b18d4628284b8b66ceb98801e1288b9073f23ed80b35e5e346c9a8
BLAKE2b-256 checksum
How to use checksums
96f7db219af8fb22507935e4fc6e7bbeec5bcdd9a821684bff2323124534ebc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2024.

Transparency log

Security for arbori 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for arbori-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2024.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page