Skip to main content

A modular 3-in-1 CLI toolkit to explore, search, and reconstruct directory structures with LLM-ready context support.

Project description

๐ŸŒฒ Seedling (v2.3.1)

Seedling CI PyPI version Python Versions License

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, a way to spawn a project from a text blueprint, or a context-optimized codebase skeleton for LLMs, Seedling has you covered.

Read this document in other languages: ็ฎ€ไฝ“ไธญๆ–‡


๐Ÿ› ๏ธ Installation

Seedling is designed to be installed globally via pipx for a clean, isolated environment.

pipx install Seedling-tools

One-Click Setup

  • Windows: Run ./install.bat
  • macOS / Linux: Run bash install.sh

Developer / Manual Install

If you are modifying the source code, use Editable Mode:

pipx install -e . --force

๐Ÿ Python Library Usage

You can now use Seedling's core features directly in your Python code via the ScanConfig engine:

import seedling
from seedling.core.filesystem import ScanConfig

# 1. Initialize configuration (Set quiet=True to suppress CLI progress bars)
config = ScanConfig(max_depth=2, quiet=True)

# 2. Generate directory tree lines
stats = {"dirs": 0, "files": 0}
lines = seedling.scan_dir_lines("./src", config, stats)
print("\n".join(lines))

# 3. Search for specific items programmatically
exact, fuzzy = seedling.search_items(".", keyword="utils", config=config)

# 4. Reconstruct a project from a blueprint
seedling.build_structure_from_file("blueprint.md", "./new_project")

๐Ÿ“– CLI Reference

Seedling 2.3.1 uses a clean, explicit argument system.

1. scan - The Explorer

Used for scanning directories, extracting code skeletons, or searching for items. Note: --full and --skeleton are mutually exclusive.

Argument Description
target Target directory for scanning or searching (Defaults to .).
--find, -f Search Mode. Fast CLI search (Exact & Fuzzy). Combine with --full to export a code report.
--format, -F Output format: md (default), txt, or image.
--name, -n Custom output filename.
--outdir, -o Where to save the result.
--showhidden Include hidden files in the scan.
--depth, -d Maximum recursion depth.
--exclude, -e List of items to ignore. Smart parse: auto-reads .gitignore files or accepts globs.
--full Power Mode. Appends the full text content of all scanned source files.
--skeleton [Experimental] AST Code Skeleton extraction. Strips logic, retains signatures.
--text Smart Filter. Only scan text-based files (ignores binary/media).
--delete Cleanup Mode. Permanently delete items matched by --find (Interactive TTY only).
--verbose / -q Verbose mode (-v) or Quiet mode (-q).

2. build - The Architect

Turn a text-based tree into a real file system, or restore a project from a snapshot.

Argument Description
file The source tree blueprint file (.txt or .md).
target Where to build the structure (Defaults to current directory).
--direct, -d Direct Mode. Bypass prompts to instantly create a specific path.
--check Dry-Run. Simulate the build and report missing/existing items.
--force Force Mode. Overwrite existing files without skipping.

๐Ÿ“‚ Project Structure (v2.3.1)

Seedling/
โ”œโ”€โ”€ docs/                      # Documentation & Changelogs
โ”‚   โ”œโ”€โ”€ CHANGELOG.md           # English version history
โ”‚   โ”œโ”€โ”€ CHANGELOG_zh.md        # Chinese version history
โ”‚   โ””โ”€โ”€ README_zh.md           # Chinese documentation
โ”œโ”€โ”€ seedling/                  # Core Package 
โ”‚   โ”œโ”€โ”€ commands/              # CLI Command Routers
โ”‚   โ”‚   โ”œโ”€โ”€ build/             # Build logic
โ”‚   โ”‚   โ””โ”€โ”€ scan/              # Scan logic
โ”‚   โ”œโ”€โ”€ core/                  # Shared Engines
โ”‚   โ”‚   โ”œโ”€โ”€ filesystem.py      # Iterative DFS, ScanConfig & Filtering
โ”‚   โ”‚   โ”œโ”€โ”€ io.py              # File R/W, Fence Collision & Path Safety
โ”‚   โ”‚   โ”œโ”€โ”€ logger.py          # Centralized CLI Formatter
โ”‚   โ”‚   โ”œโ”€โ”€ sysinfo.py         # Hardware Probe
โ”‚   โ”‚   โ””โ”€โ”€ ui.py              # Animations & CI/CD checks
โ”‚   โ”œโ”€โ”€ __init__.py            # Public API & Metadata
โ”‚   โ””โ”€โ”€ main.py                # CLI Entry Point Router
โ”œโ”€โ”€ tests/                     # Unit Tests (Core, Edge Cases & IO)
โ”œโ”€โ”€ install.bat                # Windows one-click installer
โ”œโ”€โ”€ install.sh                 # Linux/macOS one-click installer
โ”œโ”€โ”€ LICENSE                    # MIT License
โ”œโ”€โ”€ pyproject.toml             # Build configuration & Package metadata
โ”œโ”€โ”€ pytest.ini                 # Pytest configuration file
โ”œโ”€โ”€ README.md                  # Main documentation
โ””โ”€โ”€ test_suite.sh              # Automated E2E tests

๐Ÿ“œ Changelog

Detailed changes for each release are documented in the docs/CHANGELOG.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seedling_tools-2.3.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seedling_tools-2.3.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file seedling_tools-2.3.1.tar.gz.

File metadata

  • Download URL: seedling_tools-2.3.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for seedling_tools-2.3.1.tar.gz
Algorithm Hash digest
SHA256 d8418acc978f7c861b62d55bf5317b28f9d58d453c63be31717c63cb290d995f
MD5 b038e0e0e36848958123a0c4d81de61d
BLAKE2b-256 d5fb877ad5df7e72ef36c804be25a4b521089a31ee859dbb1bb165725b90ce3a

See more details on using hashes here.

File details

Details for the file seedling_tools-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: seedling_tools-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for seedling_tools-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe718d03435087e49ee1b0a953ac25193361c58ebc8b2b3a75afff4875b6b53b
MD5 c621905a5d5a5c9579b44a877757d200
BLAKE2b-256 35a2cfc650b177acb0f974f0880795911950ed439b206a19d3e5fe517628efad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page