Skip to main content

Unified CLI for the DazzleTools collection - many tools, one command

Project description

DazzleCMD (dz)

PyPI Release Date Python 3.8+ License: GPL v3 Installs Platform

Many tools, one command.

A unified CLI that aggregates many small standalone tools into a single discoverable, version-tracked interface. Instead of remembering where dozens of scripts live or hunting through folders, just use dz <tool> [args].

Why DazzleCMD?

Have you ever accumulated a collection of small utilities and handy scripts over the years -- spread across multiple folders, computers, some on network drives, some local, most not on GitHub -- and found yourself constantly forgetting where things live or what they're called?

Or maybe you've written a quick Python script to solve a problem, used it a few times, then couldn't find it six months later when you needed it again? Or you have tools that are useful but too small to justify their own GitHub repo, but also too valuable to leave scattered and unversioned?

Enter dz...

DazzleCMD provides a single entry point for all your tools. Each tool keeps its own structure and versioning. Dazzlecmd simply provides the discovery and dispatch layer. Tools that grow complex enough can "graduate" to their own repos (which can in turn be nested internal to "dz" as git submodules). Tools that stay small stay organized, easy to find, and simple to track.

Features

  • Unified Dispatch: Run any tool with dz <tool> [args] -- argparse-based with per-tool subparsers
  • Kit System: Curated tool collections -- core ships with dazzlecmd, dazzletools bundles the default collection
  • Polyglot Support: Python, shell, batch, compiled binaries -- dispatch handles runtime differences transparently
  • Progressive Scaffolding: dz new my-tool starts minimal (blank canvas), --simple adds TODO/NOTES, --full adds roadmap and tests
  • Namespace Organization: Tools grouped under projects/<namespace>/<tool>/ to prevent collisions at scale
  • Platform-Aware: Each tool declares both a quick-glance platform category and specific verified OS list
  • No Modification Required: Existing scripts work as-is -- dazzlecmd wraps them, doesn't rewrite them

Installation

pip install dazzlecmd

Or install from source:

git clone https://github.com/DazzleTools/dazzlecmd.git
cd dazzlecmd
pip install -e .

Usage

# List all available tools
dz list

# Run a tool (all arguments pass through)
dz dos2unix myfile.txt
dz rn "(.*)\.bak" "\1.txt" *.bak
dz delete-nul C:\projects
dz links -r --type symlink,junction    # Find all symlinks and junctions recursively
dz links --broken                      # Find broken links in current directory

# Get detailed info about a tool
dz info dos2unix

# List kits and their contents
dz kit list
dz kit list core
dz kit list dazzletools

# Create a new tool project
dz new my-tool                  # Bare minimum: manifest + script
dz new my-tool --simple         # + TODO.md, NOTES.md
dz new my-tool --full           # + ROADMAP.md, tests/, private/

# Version info
dz --version

Included Tools

Core Kit

These are the tools that ship with dazzlecmd. They are available everywhere and always active.

Tool Description Platform
find Cross-platform file search powered by fd Cross-platform
fixpath Fix mangled paths, search for files, open/copy/browse Cross-platform
links Detect and display filesystem links (symlinks, junctions, hardlinks, shortcuts) Cross-platform
listall Flexible directory structure listing with sorting and collection Cross-platform
rn Rename files using regular expressions Cross-platform

DazzleTools Kit

The default DazzleTools collection.

Tool Description Platform
claude-cleanup Stage and commit Claude Code transient state files Cross-platform
dos2unix Pure-Python line ending converter (dos2unix/unix2dos) Cross-platform
delete-nul Delete Windows NUL device files created by accidental >nul redirection Windows
srch-path Search the system PATH for executables Cross-platform
split Split text by separator with optional token filtering Cross-platform

How It Works

  1. Discovery: On startup, dz scans projects/<namespace>/<tool>/ for .dazzlecmd.json manifests
  2. Kit Filtering: Only tools belonging to active kits are loaded
  3. Parser Assembly: Each discovered tool gets an argparse subparser
  4. Dispatch: When you run dz <tool> [args], the runtime type determines how the tool executes:
    • python with pass_through: false → imports the module and calls the entry point directly
    • python with pass_through: true → runs via subprocess (for tools with non-standard signatures)
    • shell / script / binary → subprocess with appropriate interpreter

Tool Manifests

Each tool has a .dazzlecmd.json manifest:

{
    "name": "dos2unix",
    "version": "0.1.0",
    "description": "Pure-Python line ending converter",
    "namespace": "dazzletools",
    "language": "python",
    "platform": "cross-platform",
    "platforms": ["windows", "linux", "macos"],
    "runtime": {
        "type": "python",
        "entry_point": "main",
        "script_path": "dos2unix.py"
    },
    "taxonomy": {
        "category": "file-tools",
        "tags": ["text", "line-endings", "conversion"]
    }
}

Project Structure

dazzlecmd/
├── src/dazzlecmd/            # Installable Python package
│   ├── cli.py                # Entry point, argparse dispatch
│   ├── loader.py             # Kit-aware project discovery
│   └── templates/            # Scaffolding templates for dz new
├── projects/                 # Tool projects by namespace
│   ├── core/                 # Core tools (ships with dazzlecmd)
│   │   ├── find/
│   │   ├── fixpath/
│   │   ├── links/
│   │   ├── listall/
│   │   └── rn/
│   └── dazzletools/          # DazzleTools collection
│       ├── claude-cleanup/
│       ├── dos2unix/
│       ├── delete-nul/
│       ├── split/
│       └── srch-path/
├── kits/                     # Kit definitions (*.kit.json)
├── config/                   # JSON schema for manifests
└── scripts/                  # Version management and git hooks

Cross-Platform

Platform Status
Windows Supported
Linux Supported
macOS Supported

Individual tools may have platform-specific requirements -- check dz info <tool> for details. See Platform Support for the full matrix.

Documentation

Related Projects

  • git-repokit -- Standardized Git repository creation tool
  • preserve -- Cross-platform file preservation with path normalization and verification
  • dazzlesum -- Cross-platform file checksum utility

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

Like the project?

"Buy Me A Coffee"

License

Copyright (C) 2026 Dustin Darcy

This project is licensed under the GNU General Public License v3.0 -- see the LICENSE file for details.

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

dazzlecmd-0.4.1.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

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

dazzlecmd-0.4.1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file dazzlecmd-0.4.1.tar.gz.

File metadata

  • Download URL: dazzlecmd-0.4.1.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dazzlecmd-0.4.1.tar.gz
Algorithm Hash digest
SHA256 3d256cc4def4e2707aff06e7dddc63ef4b942b915370add69421030502c5e69e
MD5 5d3588878f88a7fdc563840e465f839e
BLAKE2b-256 11b101ef59c1f4c883382014fee7e19badc75016a1a759ba464715cf00d0f196

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzlecmd-0.4.1.tar.gz:

Publisher: publish.yml on DazzleTools/dazzlecmd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dazzlecmd-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dazzlecmd-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dazzlecmd-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f383d85a64b0b91dcad3c52a8f1a9f88b2ef0904fd516fd7d98588052bc9bf0b
MD5 ff2647ee79ec915636939c7cc8ff5aab
BLAKE2b-256 94087c23466a6c7e794ba91012b8d9216b557cb0c5a6cd652906b991b2155433

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzlecmd-0.4.1-py3-none-any.whl:

Publisher: publish.yml on DazzleTools/dazzlecmd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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