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:
- Fork and clone the repository
- Set up your Python virtual environment
python3 -m venv .venv
source .venv/bin/activate
- Install dependencies
pip install .
pip install -e '.[test]'
- Create your feature branch
git checkout -b feature/new-feature
- Development Guidelines:
- Write tests for new features using pytest
- Add documentation for new features
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5ef465a81b0ab7eac3dc96b29d572b7ad66c85dff0b174d2022dc67f25804fd
|
|
| MD5 |
83bada6bc10f6b5e3a4055639abdd9e1
|
|
| BLAKE2b-256 |
829343157644ca196610616e1dbc67dd714f924ff32e675dc4b288e0eb754b72
|
Provenance
The following attestation bundles were made for arbori-0.2.0.tar.gz:
Publisher:
publish.yml on harleyjwilson/arbori
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arbori-0.2.0.tar.gz -
Subject digest:
e5ef465a81b0ab7eac3dc96b29d572b7ad66c85dff0b174d2022dc67f25804fd - Sigstore transparency entry: 149312896
- Sigstore integration time:
-
Permalink:
harleyjwilson/arbori@60930f01ed42be357f7536fb26a66842ffd5b876 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/harleyjwilson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60930f01ed42be357f7536fb26a66842ffd5b876 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2fdd0e262b18d4628284b8b66ceb98801e1288b9073f23ed80b35e5e346c9a8
|
|
| MD5 |
0d88b42a1e410a3248393ee7ec5b9642
|
|
| BLAKE2b-256 |
96f7db219af8fb22507935e4fc6e7bbeec5bcdd9a821684bff2323124534ebc0
|
Provenance
The following attestation bundles were made for arbori-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on harleyjwilson/arbori
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arbori-0.2.0-py3-none-any.whl -
Subject digest:
c2fdd0e262b18d4628284b8b66ceb98801e1288b9073f23ed80b35e5e346c9a8 - Sigstore transparency entry: 149312897
- Sigstore integration time:
-
Permalink:
harleyjwilson/arbori@60930f01ed42be357f7536fb26a66842ffd5b876 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/harleyjwilson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60930f01ed42be357f7536fb26a66842ffd5b876 -
Trigger Event:
release
-
Statement type: