Pythonic Typer CLI for bootstrapping standard and templated workspaces and projects. Generate introspective sourcecode workspace_manager.py Path quarterback. Controlled per-directory scaffolds using the mulch.toml file. Stealth options available for directories shared between dev and non-dev team members.
Project description
mulch — Workspace Factory CLI
mulch is a lightweight CLI bootstrapper and right-click context menu tool. Use mulch to empower your file system. There with multiple use cases for enhanced directory scaffolding, both as an individual and in a shared drive with a team. Developers will enjoy quickly standing up Python projects, and end-users will enjoy right-clicking in the file browser to set up file organization the same way every time, customizable to each directory.
Features
- Benefit from introspective directory getters and file getters in the
WorkspaceManagerclass, dictated bymulch.tomland protected bymanager.lock. - The hidden
.mulchfolder is leveraged for configuration. - In
--stealthmode, code can be stashed in.mulch, so that workplace directories shared with non-technical co-workers can be crisp while providing space to write localized analysis scripts. - Easily installable and runnable via
pipx - Enforces a separation of source code and workspace files.
- The
--hereflag enables basic scaffolding for directory-only generation, no code included. - The default workspace folder name is the date, if the
--nameflag is not provided. - The
mulch-contextCLI command is registered with the system, as per tool.poetry.scripts, mulch-context = "mulch.scripts.install.install_context:app"
Installation
pipx (recommended)
pipx install mulch
mulch-context # or `mulch context`
git clone
git clone https://github.com/city-of-memphis/mulch.git
cd mulch
poetry install
poetry build
pipx install dist/mulch-*-py3-none-any.whl
The git source code includes .reg files which can be leveraged to register right-click commands with your context menu, to enjoy the full power of mulch in your file browser as a user-facing power tool.
Usage
# Set up a new directory, where you anticipate to organizing multiple projects
mkdir equipment-monitoring
cd equipment-monitoring
# Generated a fresh .mulch\mulch.toml file, and edit the directory scaffold before running 'mulch src'.
mulch seed --edit
# Stealth mode, best for shared directories (`--stealth`)
mulch src --stealth
mulch workspace --name bioreactor-1-team-analysis --here
# Standard mode, best for Python developers
mulch src
mulch workspace --name API01toAPI05
# User mode, for everyone (`--here`)
mulch workspace --name SummerPhotos2025 --here
# Mimick new folder default naming convention, to invite the user to edit the workspace directory name manually
mulch workspace --pattern new --here # This is the installed context menu behavior, via `mulch-context`
# Use a date as a default new workspace naming convention, for low-friction useful naming. This matches my Obsidian templated date convention.
# This is the default if the `--pattern` flag is not used explicitly and if an explicit name is not provided with the `--name` flag.
mulch workspace --pattern date --here
mulch workspace --here # This does the same thing, as of 0.2.19.
Folder Stucture Options, using mulch src
| Flag | Workspace Location | Source Location | Goal |
|---|---|---|---|
| (none) | workspaces/<name>/ |
src/<proj>/ |
Normal development use |
--here |
./<name>/ |
(none) | Clean, user-facing |
--stealth |
./<name>/ |
.mulch/src/<proj>/ |
Play nice with shared dirs |
I am really excited about mulch src --stealth for mixed use directories. Business and engineering users can organize projects in a shared drive like SharePoint, while a dev can run custom analysis scripts catered to each type of project.
mulch context versus mulch-context
These do the same thing.
mulch-context is an independant CLI tool to register mulch workspace behavior to the context menu.
mulch context is a command in the mulch CLI, which also calls the app() function in install_context.py.
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 mulch-0.2.29.tar.gz.
File metadata
- Download URL: mulch-0.2.29.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
950423500dd261eab6ca2c983f6571fb8354578ef54d9ed9dbbcd00b8dd13dd3
|
|
| MD5 |
f8cdebc03f0b4d8e97d7c11dbccb41bc
|
|
| BLAKE2b-256 |
3471069ca5a3e63da5398bec4bb368da7f294b350f0a529a37f1c187dabbb7a4
|
File details
Details for the file mulch-0.2.29-py3-none-any.whl.
File metadata
- Download URL: mulch-0.2.29-py3-none-any.whl
- Upload date:
- Size: 53.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
593d0d7bf7dd7fb4b07d0588f1733057cca994f79520dbeaba298f121ae03f01
|
|
| MD5 |
cf1a2028c55a9ff50558deb1efce1c76
|
|
| BLAKE2b-256 |
41c0ec66223cb4b50bb7366accd0544ccd52d7b874cee248c54d5a540aab1685
|