╔════════════════════════════════════════════════════════════════════════════════╗
║ ║
║ █████╗ ██████╗ ██████╗██╗ ██╗██╗████████╗███████╗ ██████╗████████╗ ║
║ ██╔══██╗██╔══██╗██╔════╝██║ ██║██║╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ║
║ ███████║██████╔╝██║ ███████║██║ ██║ █████╗ ██║ ██║ ║
║ ██╔══██║██╔══██╗██║ ██╔══██║██║ ██║ ██╔══╝ ██║ ██║ ║
║ ██║ ██║██║ ██║╚██████╗██║ ██║██║ ██║ ███████╗╚██████╗ ██║ ║
║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ║
║ ║
║ CLI File structure builder ║
║ v 1.0.0 ║
╚════════════════════════════════════════════════════════════════════════════════╝
Architect is a command-line tool for creating file structures from text representations and scanning existing directories to generate structured outputs.
Features
- Create structures from textual representations (ASCII tree, indented text)
- Scan directories and export in multiple formats
- Interactive mode with step-by-step wizards
- Multiple output formats: ASCII tree, JSON, YAML, XML, Markdown
- Flexible input support: spaces, tabs, ASCII tree characters
- Smart filtering with customizable ignore patterns
- Dry-run mode for safe testing
Installation
Option 1: From Source (Recommended)
cd ~ && git clone https://github.com/mhdgning131/architect.git .architect
cd .architect
sudo chmod +x install.sh
./install.sh
After installation, you can use architect command globally:
architect --help
architect scan .
Quick Start
Create a file structure
# From a file
architect create -f structure.txt
# From stdin
echo "project/
├── src/
│ └── main.py
└── README.md" | architect create
Scan an existing directory
# Basic scan
architect scan /path/to/directory
# With options
architect scan . --format json --show-size --max-depth 3
Interactive mode
architect --interactive
Usage Examples
Creating Structures
Input format example:
project/
├── src/
│ ├── components/
│ │ └── Button.js
│ └── utils/
│ └── helpers.js
├── public/
│ └── index.html
└── package.json
Commands:
# Create with dry-run
architect create -f structure.txt --dry-run
# Create in specific directory
architect create -f structure.txt -o ./my-project
Scanning Directories
# Different output formats
architect scan . --format json --output structure.json
architect scan . --format yaml --pretty
architect scan . --format markdown --show-size
# With filtering
architect scan . --ignore "*.log" --ignore "node_modules" --max-depth 2
Output Formats
| Format | Description |
|---|---|
tree |
ASCII tree with connecting lines (default) |
simple |
Simple indented tree |
json |
Structured JSON format |
yaml |
YAML format (requires PyYAML) |
xml |
XML format |
markdown |
Markdown with emoji icons |
Command Reference
Create Command
architect create [OPTIONS]
Options:
-f, --file PATH Input file with structure
-o, --output DIR Output directory (default: .)
--dry-run Simulate without creating files
-v, --verbose Detailed parsing output
Scan Command
architect scan [DIRECTORY] [OPTIONS]
Options:
--format FORMAT Output format (tree, simple, json, yaml, xml, markdown)
-o, --output FILE Save to file
--max-depth INT Maximum scan depth
--show-size Show file sizes
--ignore PATTERN Patterns to ignore (repeatable)
--pretty Pretty print JSON/XML
Metadata
Release files for architect-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| architect_cli-0.1.4.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| architect_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.0 kB
Release files / architect_cli-0.1.4.tar.gz
| Download URL | architect_cli-0.1.4.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f7aabc4e35a99c64229a82a628cb1885fb18ad9e70a72aaaf8a5d61b836e7b7
|
|
BLAKE2b-256 checksum How to use checksums |
8bbadb374e66d242091ce025d40037d4140eb34b3882505c088bf2b4764a96fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / architect_cli-0.1.4-py3-none-any.whl
| Download URL | architect_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b646d4c6f51df916389f43277a435cb57c4194ba07eecbe7214689d0b2e651df
|
|
BLAKE2b-256 checksum How to use checksums |
309cfc5aeafaf8e6cd3fee07e8649b95cd7b2687b88bd32a165fa565e1d8ec0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|