Skip to main content

Workspace Factory CLI for initializing standard workspace folders in /workspaces/ and generating an introspective WorkspaceManager class in /src/.

Project description

mulch — Workspace Factory CLI

mulch is a lightweight, project-agnostic CLI tool to scaffold and generate workspace directories for intentional, usable Python projects. It bootstraps a standardized workspace folder structure, an introspective templated WorkspaceManager, and other key files inside both your source directory and your workspaces directory.

Set up new projects easily with workspace scaffolding and source-code templating.

Key feature: Benefit from introspective directory getters and file getters in the WorkspaceManager class, dictated by mulch-scaffold.json and protected by mulch.lock.

Set up new projects easily with workspace scaffolding and source-code templating.

Key feature: Benefit from introspective directory getters and file getters in the WorkspaceManager class, dictated by mulch-scaffold.json and protected by mulch.lock.


Features

  • Initialize workspaces with a consistent scaffold defined by mulch-scaffold.json
  • Create a default-workspace.toml to track the active workspace
  • Easily installable and runnable via pipx
  • Uses a Pythonic /package-root/src/pacakge-name/ paradigm
  • Enforces a separation of source code and workspace files, with workspace files organized into /package-root/workspaces/your-special-workspace/ structure.

Installation

pipx (recommended)

pipx install mulch

Install Mulch as a right-click item in the context menu:

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

Usage

# Generated a fresh mulch-scaffold.json file, to edit before running 'mulch init'.
mulch file

# Initialize workspace named 'default' in the current directory
mulch init

# Initialize workspace named 'workspace1' in ./myproject
mulch init ./myproject --name workspace1

# Initialize workspace named 'workspace1' in the current directory
mulch init --name workspace1

# Skip creating default-workspace.toml
mulch init ./myproject --name workspace1 --no-set-default

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

mulch-0.1.39.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

mulch-0.1.39-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file mulch-0.1.39.tar.gz.

File metadata

  • Download URL: mulch-0.1.39.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mulch-0.1.39.tar.gz
Algorithm Hash digest
SHA256 5d6fd48f399b857d1950839ce5a9040ed4d7e6a2ca4b20cccc036f0c15f280da
MD5 06b413d59e7f2a7d64a21ffc67324f8b
BLAKE2b-256 e1d55cfad41675403efe62bbac78c2131b423f9adb52e2fcb33a0d60e1a5563d

See more details on using hashes here.

File details

Details for the file mulch-0.1.39-py3-none-any.whl.

File metadata

  • Download URL: mulch-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mulch-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 f682a0feb363223914930fe491f60dd067c80f46332eb9b90e4afe9470d41440
MD5 90d1ca7a2b21dcd806178641dc2955c0
BLAKE2b-256 0f0908e63062c7a07c56ea30db84e8d3111df2867253108ee29502dcdeabe30a

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