Seedling-tools 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: Seedling-tools
3
+ Version: 2.1.0
4
+ Summary: A 3-in-1 CLI toolkit to explore, search, and reconstruct directory structures with LLM-ready context support.
5
+ Author: Blue Peach
6
+ Project-URL: Homepage, https://github.com/bbpeaches/Seedling
7
+ Project-URL: Issues, https://github.com/bbpeaches/Seedling/issues
8
+ Keywords: cli,directory-tree,llm-context,scaffolding,developer-tools
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: Pillow>=9.0.0
16
+
17
+ # 🌲 Seedling (v2.1.0)
18
+
19
+ [![Seedling CI](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml/badge.svg)](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml)
20
+
21
+ **Seedling** is a high-performance, 3-in-1 CLI toolkit designed for developers to explore, search, and reconstruct directory structures. Whether you need a beautiful image of your project architecture or a way to spawn a project from a text blueprint, Seedling has you covered.
22
+
23
+ ---
24
+
25
+ ## 🚀 Key Features
26
+
27
+ * **Context Rehydration 🌟**: Generate a project snapshot using `scan --full`, and use `build` to flawlessly restore the *entire* directory structure along with the original source code.
28
+ * **Scan & Export**: Export directory trees to `Markdown`, `Plain Text`, or high-fidelity `PNG` images with full Chinese character support.
29
+ * **Smart Search**: Dual-mode search featuring **Exact Match** and **Fuzzy Suggestions** (powered by Levenshtein distance) with in-tree `🎯 [MATCHED]` visual highlights.
30
+ * **Reverse Scaffolding**: Use the `build` command to read any tree diagram (even those copied from a README) and instantly recreate the folder/file hierarchy.
31
+ * **Progressive UI**: Dynamic "pulsing" progress bars for scanning and real-time construction logs for building.
32
+ * **Interactive Personality**: Built-in session-based "Easter Eggs" that respond to your terminal behavior (Mac/Linux exclusive).
33
+
34
+ ---
35
+
36
+ ## 🛠️ Installation
37
+
38
+ Seedling is designed to be installed globally via `pipx` for a clean, isolated environment.
39
+
40
+ ### One-Click Setup (Self-Destructing Installers)
41
+
42
+ Our installers set up the environment, install the tool, and then delete themselves to keep your workspace tidy.
43
+
44
+ * **Windows**: Run `install.bat`
45
+ * **macOS / Linux**: Run `chmod +x install.sh && ./install.sh`
46
+
47
+ ### Developer / Manual Install
48
+
49
+ If you are modifying the source code, use **Editable Mode**:
50
+
51
+ ```bash
52
+ pipx install -e . --force
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 📖 CLI Reference
58
+
59
+ ### 1. `scan` - The Explorer
60
+
61
+ Used for scanning directories or searching for items.
62
+
63
+ | Flag | Short | Description |
64
+ | --- | --- | --- |
65
+ | `--find` | `-f` | **Search Mode**. Returns exact and fuzzy matches + a saved report. |
66
+ | `--format` | `-F` | Output format: `md` (default), `txt`, or `image`. |
67
+ | `--depth` | `-d` | Max recursion depth to prevent terminal "walls of text." |
68
+ | `--exclude` | `-e` | List of folders to ignore (e.g., `node_modules .git venv`). |
69
+ | `--outdir` | `-o` | Where to save the result (Defaults to your current terminal path). |
70
+ | `--full` | - | **Power Mode**. Appends the full text content of all scanned source files to the output. |
71
+
72
+ **Examples:**
73
+
74
+ ```bash
75
+ # Export current directory as a PNG image
76
+ scan . -F image
77
+
78
+ # Fuzzy search for a mispelled config file
79
+ scan ~/Projects -f "conifg"
80
+
81
+ # Complex scan: exclude heavy folders, show hidden, save to Desktop
82
+ scan . -s -e node_modules -o ~/Desktop -n project_map.md
83
+
84
+ # 🌟 POWER MODE: Export tree + all source code for LLMs (excluding caches)
85
+ scan . --full -e node_modules __pycache__ .git
86
+ ```
87
+
88
+ ### 2. `build` - The Architect
89
+
90
+ A dedicated command to turn a text-based tree into a real file system, or restore a project from a snapshot.
91
+
92
+ | Flag | Short | Description |
93
+ | --- | --- | --- |
94
+ | `--check` | `-c` | **Dry-Run Mode**. Simulates the build and reports missing/existing items. |
95
+ | `--force` | `-f` | **Force Mode**. Overwrites existing files without skipping. |
96
+ | `--direct` | `-d` | **Direct Mode**. Bypasses prompts to instantly create a specific file/folder path. |
97
+
98
+ **Examples:**
99
+
100
+ ```bash
101
+ # Build in current directory using a simple blueprint
102
+ build blueprint.md
103
+
104
+ # 🪄 RESTORE MAGIC: Reconstruct an entire project with source code from a --full scan
105
+ build project_snapshot.md ~/Desktop/RestoredProject
106
+
107
+ # Dry-run a blueprint to safely check what will be created
108
+ build blueprint.txt --check
109
+
110
+ # Directly scaffold a folder without prompts
111
+ build -d ~/Desktop/NewProject
112
+ ```
113
+
114
+ ---
115
+
116
+ ## 📂 Project Structure
117
+
118
+ ```text
119
+ Seedling/
120
+ ├── pyproject.toml <- Modern build configuration
121
+ ├── install.sh/bat <- Auto-installers
122
+ ├── test_suite.sh <- Auto-tests
123
+ └── scan_tool/
124
+ ├── __init__.py <- Metadata & versioning
125
+ ├── __main__.py <- Module entry point
126
+ ├── cli.py <- Logic for 'scan' and 'build' commands
127
+ ├── scanner.py <- Search and scanning engine
128
+ ├── builder.py <- Scaffolding and reverse-build engine
129
+ ├── exporter.py <- Image rendering & OS-specific fonts
130
+ └── utils.py <- Session logic, animations, and smart-parsing
131
+
132
+ ```
@@ -0,0 +1,116 @@
1
+ # 🌲 Seedling (v2.1.0)
2
+
3
+ [![Seedling CI](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml/badge.svg)](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml)
4
+
5
+ **Seedling** is a high-performance, 3-in-1 CLI toolkit designed for developers to explore, search, and reconstruct directory structures. Whether you need a beautiful image of your project architecture or a way to spawn a project from a text blueprint, Seedling has you covered.
6
+
7
+ ---
8
+
9
+ ## 🚀 Key Features
10
+
11
+ * **Context Rehydration 🌟**: Generate a project snapshot using `scan --full`, and use `build` to flawlessly restore the *entire* directory structure along with the original source code.
12
+ * **Scan & Export**: Export directory trees to `Markdown`, `Plain Text`, or high-fidelity `PNG` images with full Chinese character support.
13
+ * **Smart Search**: Dual-mode search featuring **Exact Match** and **Fuzzy Suggestions** (powered by Levenshtein distance) with in-tree `🎯 [MATCHED]` visual highlights.
14
+ * **Reverse Scaffolding**: Use the `build` command to read any tree diagram (even those copied from a README) and instantly recreate the folder/file hierarchy.
15
+ * **Progressive UI**: Dynamic "pulsing" progress bars for scanning and real-time construction logs for building.
16
+ * **Interactive Personality**: Built-in session-based "Easter Eggs" that respond to your terminal behavior (Mac/Linux exclusive).
17
+
18
+ ---
19
+
20
+ ## 🛠️ Installation
21
+
22
+ Seedling is designed to be installed globally via `pipx` for a clean, isolated environment.
23
+
24
+ ### One-Click Setup (Self-Destructing Installers)
25
+
26
+ Our installers set up the environment, install the tool, and then delete themselves to keep your workspace tidy.
27
+
28
+ * **Windows**: Run `install.bat`
29
+ * **macOS / Linux**: Run `chmod +x install.sh && ./install.sh`
30
+
31
+ ### Developer / Manual Install
32
+
33
+ If you are modifying the source code, use **Editable Mode**:
34
+
35
+ ```bash
36
+ pipx install -e . --force
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 📖 CLI Reference
42
+
43
+ ### 1. `scan` - The Explorer
44
+
45
+ Used for scanning directories or searching for items.
46
+
47
+ | Flag | Short | Description |
48
+ | --- | --- | --- |
49
+ | `--find` | `-f` | **Search Mode**. Returns exact and fuzzy matches + a saved report. |
50
+ | `--format` | `-F` | Output format: `md` (default), `txt`, or `image`. |
51
+ | `--depth` | `-d` | Max recursion depth to prevent terminal "walls of text." |
52
+ | `--exclude` | `-e` | List of folders to ignore (e.g., `node_modules .git venv`). |
53
+ | `--outdir` | `-o` | Where to save the result (Defaults to your current terminal path). |
54
+ | `--full` | - | **Power Mode**. Appends the full text content of all scanned source files to the output. |
55
+
56
+ **Examples:**
57
+
58
+ ```bash
59
+ # Export current directory as a PNG image
60
+ scan . -F image
61
+
62
+ # Fuzzy search for a mispelled config file
63
+ scan ~/Projects -f "conifg"
64
+
65
+ # Complex scan: exclude heavy folders, show hidden, save to Desktop
66
+ scan . -s -e node_modules -o ~/Desktop -n project_map.md
67
+
68
+ # 🌟 POWER MODE: Export tree + all source code for LLMs (excluding caches)
69
+ scan . --full -e node_modules __pycache__ .git
70
+ ```
71
+
72
+ ### 2. `build` - The Architect
73
+
74
+ A dedicated command to turn a text-based tree into a real file system, or restore a project from a snapshot.
75
+
76
+ | Flag | Short | Description |
77
+ | --- | --- | --- |
78
+ | `--check` | `-c` | **Dry-Run Mode**. Simulates the build and reports missing/existing items. |
79
+ | `--force` | `-f` | **Force Mode**. Overwrites existing files without skipping. |
80
+ | `--direct` | `-d` | **Direct Mode**. Bypasses prompts to instantly create a specific file/folder path. |
81
+
82
+ **Examples:**
83
+
84
+ ```bash
85
+ # Build in current directory using a simple blueprint
86
+ build blueprint.md
87
+
88
+ # 🪄 RESTORE MAGIC: Reconstruct an entire project with source code from a --full scan
89
+ build project_snapshot.md ~/Desktop/RestoredProject
90
+
91
+ # Dry-run a blueprint to safely check what will be created
92
+ build blueprint.txt --check
93
+
94
+ # Directly scaffold a folder without prompts
95
+ build -d ~/Desktop/NewProject
96
+ ```
97
+
98
+ ---
99
+
100
+ ## 📂 Project Structure
101
+
102
+ ```text
103
+ Seedling/
104
+ ├── pyproject.toml <- Modern build configuration
105
+ ├── install.sh/bat <- Auto-installers
106
+ ├── test_suite.sh <- Auto-tests
107
+ └── scan_tool/
108
+ ├── __init__.py <- Metadata & versioning
109
+ ├── __main__.py <- Module entry point
110
+ ├── cli.py <- Logic for 'scan' and 'build' commands
111
+ ├── scanner.py <- Search and scanning engine
112
+ ├── builder.py <- Scaffolding and reverse-build engine
113
+ ├── exporter.py <- Image rendering & OS-specific fonts
114
+ └── utils.py <- Session logic, animations, and smart-parsing
115
+
116
+ ```
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: Seedling-tools
3
+ Version: 2.1.0
4
+ Summary: A 3-in-1 CLI toolkit to explore, search, and reconstruct directory structures with LLM-ready context support.
5
+ Author: Blue Peach
6
+ Project-URL: Homepage, https://github.com/bbpeaches/Seedling
7
+ Project-URL: Issues, https://github.com/bbpeaches/Seedling/issues
8
+ Keywords: cli,directory-tree,llm-context,scaffolding,developer-tools
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: Pillow>=9.0.0
16
+
17
+ # 🌲 Seedling (v2.1.0)
18
+
19
+ [![Seedling CI](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml/badge.svg)](https://github.com/bbpeaches/Seedling/actions/workflows/ci.yml)
20
+
21
+ **Seedling** is a high-performance, 3-in-1 CLI toolkit designed for developers to explore, search, and reconstruct directory structures. Whether you need a beautiful image of your project architecture or a way to spawn a project from a text blueprint, Seedling has you covered.
22
+
23
+ ---
24
+
25
+ ## 🚀 Key Features
26
+
27
+ * **Context Rehydration 🌟**: Generate a project snapshot using `scan --full`, and use `build` to flawlessly restore the *entire* directory structure along with the original source code.
28
+ * **Scan & Export**: Export directory trees to `Markdown`, `Plain Text`, or high-fidelity `PNG` images with full Chinese character support.
29
+ * **Smart Search**: Dual-mode search featuring **Exact Match** and **Fuzzy Suggestions** (powered by Levenshtein distance) with in-tree `🎯 [MATCHED]` visual highlights.
30
+ * **Reverse Scaffolding**: Use the `build` command to read any tree diagram (even those copied from a README) and instantly recreate the folder/file hierarchy.
31
+ * **Progressive UI**: Dynamic "pulsing" progress bars for scanning and real-time construction logs for building.
32
+ * **Interactive Personality**: Built-in session-based "Easter Eggs" that respond to your terminal behavior (Mac/Linux exclusive).
33
+
34
+ ---
35
+
36
+ ## 🛠️ Installation
37
+
38
+ Seedling is designed to be installed globally via `pipx` for a clean, isolated environment.
39
+
40
+ ### One-Click Setup (Self-Destructing Installers)
41
+
42
+ Our installers set up the environment, install the tool, and then delete themselves to keep your workspace tidy.
43
+
44
+ * **Windows**: Run `install.bat`
45
+ * **macOS / Linux**: Run `chmod +x install.sh && ./install.sh`
46
+
47
+ ### Developer / Manual Install
48
+
49
+ If you are modifying the source code, use **Editable Mode**:
50
+
51
+ ```bash
52
+ pipx install -e . --force
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 📖 CLI Reference
58
+
59
+ ### 1. `scan` - The Explorer
60
+
61
+ Used for scanning directories or searching for items.
62
+
63
+ | Flag | Short | Description |
64
+ | --- | --- | --- |
65
+ | `--find` | `-f` | **Search Mode**. Returns exact and fuzzy matches + a saved report. |
66
+ | `--format` | `-F` | Output format: `md` (default), `txt`, or `image`. |
67
+ | `--depth` | `-d` | Max recursion depth to prevent terminal "walls of text." |
68
+ | `--exclude` | `-e` | List of folders to ignore (e.g., `node_modules .git venv`). |
69
+ | `--outdir` | `-o` | Where to save the result (Defaults to your current terminal path). |
70
+ | `--full` | - | **Power Mode**. Appends the full text content of all scanned source files to the output. |
71
+
72
+ **Examples:**
73
+
74
+ ```bash
75
+ # Export current directory as a PNG image
76
+ scan . -F image
77
+
78
+ # Fuzzy search for a mispelled config file
79
+ scan ~/Projects -f "conifg"
80
+
81
+ # Complex scan: exclude heavy folders, show hidden, save to Desktop
82
+ scan . -s -e node_modules -o ~/Desktop -n project_map.md
83
+
84
+ # 🌟 POWER MODE: Export tree + all source code for LLMs (excluding caches)
85
+ scan . --full -e node_modules __pycache__ .git
86
+ ```
87
+
88
+ ### 2. `build` - The Architect
89
+
90
+ A dedicated command to turn a text-based tree into a real file system, or restore a project from a snapshot.
91
+
92
+ | Flag | Short | Description |
93
+ | --- | --- | --- |
94
+ | `--check` | `-c` | **Dry-Run Mode**. Simulates the build and reports missing/existing items. |
95
+ | `--force` | `-f` | **Force Mode**. Overwrites existing files without skipping. |
96
+ | `--direct` | `-d` | **Direct Mode**. Bypasses prompts to instantly create a specific file/folder path. |
97
+
98
+ **Examples:**
99
+
100
+ ```bash
101
+ # Build in current directory using a simple blueprint
102
+ build blueprint.md
103
+
104
+ # 🪄 RESTORE MAGIC: Reconstruct an entire project with source code from a --full scan
105
+ build project_snapshot.md ~/Desktop/RestoredProject
106
+
107
+ # Dry-run a blueprint to safely check what will be created
108
+ build blueprint.txt --check
109
+
110
+ # Directly scaffold a folder without prompts
111
+ build -d ~/Desktop/NewProject
112
+ ```
113
+
114
+ ---
115
+
116
+ ## 📂 Project Structure
117
+
118
+ ```text
119
+ Seedling/
120
+ ├── pyproject.toml <- Modern build configuration
121
+ ├── install.sh/bat <- Auto-installers
122
+ ├── test_suite.sh <- Auto-tests
123
+ └── scan_tool/
124
+ ├── __init__.py <- Metadata & versioning
125
+ ├── __main__.py <- Module entry point
126
+ ├── cli.py <- Logic for 'scan' and 'build' commands
127
+ ├── scanner.py <- Search and scanning engine
128
+ ├── builder.py <- Scaffolding and reverse-build engine
129
+ ├── exporter.py <- Image rendering & OS-specific fonts
130
+ └── utils.py <- Session logic, animations, and smart-parsing
131
+
132
+ ```
@@ -0,0 +1,15 @@
1
+ README.md
2
+ pyproject.toml
3
+ Seedling_tools.egg-info/PKG-INFO
4
+ Seedling_tools.egg-info/SOURCES.txt
5
+ Seedling_tools.egg-info/dependency_links.txt
6
+ Seedling_tools.egg-info/entry_points.txt
7
+ Seedling_tools.egg-info/requires.txt
8
+ Seedling_tools.egg-info/top_level.txt
9
+ scan_tool/__init__.py
10
+ scan_tool/__main__.py
11
+ scan_tool/builder.py
12
+ scan_tool/cli.py
13
+ scan_tool/exporter.py
14
+ scan_tool/scanner.py
15
+ scan_tool/utils.py
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ build = scan_tool.cli:build_entry
3
+ scan = scan_tool.cli:main
@@ -0,0 +1 @@
1
+ Pillow>=9.0.0
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "Seedling-tools"
7
+ version = "2.1.0"
8
+ description = "A 3-in-1 CLI toolkit to explore, search, and reconstruct directory structures with LLM-ready context support."
9
+ readme = "README.md"
10
+ authors = [
11
+ { name = "Blue Peach" }
12
+ ]
13
+ requires-python = ">=3.8"
14
+ keywords = ["cli", "directory-tree", "llm-context", "scaffolding", "developer-tools"]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ "Intended Audience :: Developers",
20
+ ]
21
+ dependencies = [
22
+ "Pillow>=9.0.0"
23
+ ]
24
+
25
+ [project.urls]
26
+ Homepage = "https://github.com/bbpeaches/Seedling"
27
+ Issues = "https://github.com/bbpeaches/Seedling/issues"
28
+
29
+ [project.scripts]
30
+ scan = "scan_tool.cli:main"
31
+ build = "scan_tool.cli:build_entry"
@@ -0,0 +1,32 @@
1
+ """
2
+ 🌲 Seedling (formerly Directory Tree Scanner)
3
+ =============================================
4
+ A powerful 3-in-1 CLI toolkit to:
5
+ 1. SCAN: Export directory structures to MD, TXT, or Images.
6
+ 2. FIND: Perform exact and fuzzy searches with automated reports.
7
+ 3. BUILD: Construct real file systems from text-based blueprints.
8
+
9
+ Author: Blue Peach
10
+ """
11
+
12
+ from importlib.metadata import version, PackageNotFoundError
13
+
14
+ try:
15
+ __version__ = version("Seedling")
16
+ except PackageNotFoundError:
17
+ __version__ = "dev"
18
+
19
+ from .cli import main, build_entry
20
+ from .scanner import scan_dir_lines, search_items
21
+ from .builder import build_structure_from_file
22
+
23
+ __author__ = "Blue Peach"
24
+
25
+ __all__ = [
26
+ "main",
27
+ "build_entry",
28
+ "scan_dir_lines",
29
+ "search_items",
30
+ "build_structure_from_file",
31
+ "__version__"
32
+ ]
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()