A command-line tool to build file structures from text and scan directories.
Project description
╔════════════════════════════════════════════════════════════════════════════════╗
║ ║
║ █████╗ ██████╗ ██████╗██╗ ██╗██╗████████╗███████╗ ██████╗████████╗ ║
║ ██╔══██╗██╔══██╗██╔════╝██║ ██║██║╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ║
║ ███████║██████╔╝██║ ███████║██║ ██║ █████╗ ██║ ██║ ║
║ ██╔══██║██╔══██╗██║ ██╔══██║██║ ██║ ██╔══╝ ██║ ██║ ║
║ ██║ ██║██║ ██║╚██████╗██║ ██║██║ ██║ ███████╗╚██████╗ ██║ ║
║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ║
║ ║
║ 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
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 architect_cli-0.1.4.tar.gz.
File metadata
- Download URL: architect_cli-0.1.4.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f7aabc4e35a99c64229a82a628cb1885fb18ad9e70a72aaaf8a5d61b836e7b7
|
|
| MD5 |
2941eb575b26ed709fd88516b5f9faec
|
|
| BLAKE2b-256 |
8bbadb374e66d242091ce025d40037d4140eb34b3882505c088bf2b4764a96fb
|
File details
Details for the file architect_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: architect_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b646d4c6f51df916389f43277a435cb57c4194ba07eecbe7214689d0b2e651df
|
|
| MD5 |
a7bc13b237496e3095fd91b053fdd4bd
|
|
| BLAKE2b-256 |
309cfc5aeafaf8e6cd3fee07e8649b95cd7b2687b88bd32a165fa565e1d8ec0d
|