Skip to main content

Sandling

Small, temporary Git workspaces that know when to leave. A Sandling is for debugging, building, and pushing—not becoming an archaeological layer in your home directory.

Sandling creates an isolated clone for a configured project, selects exactly the branch you ask for, runs explicit bootstrap commands, and can remind you when the workspace is ready to retire. It never deletes automatically. Sandboxes are disposable; your work is not.

What it does

  • Manages one or more explicit project profiles. A new install has no repository configured.
  • Creates workspaces from a freshly fetched base branch or an existing remote branch unchanged.
  • Runs profile bootstrap steps as argument arrays, never through a shell.
  • Optionally launches your configured editor.
  • Installs a local post-push reminder. It can mark a workspace ready; it cannot delete one.
  • Refuses ordinary destruction when a workspace is dirty, contains untracked files, has unpushed commits, or lacks a usable upstream.

Install

Sandling supports Linux and macOS with Python 3.11 or later.

pipx install sandling
sandling --help

Upgrade a published installation with pipx upgrade sandling. Sandling does not try to update itself from a random checkout; that is how tools acquire hobbies.

For local development:

python -m pip install -e '.[dev]'
python -m pytest
python -m ruff check src tests
python -m ruff format --check src tests

Configure a project

Create a profile for any Git repository:

sandling profile init demo --repository-url https://example.test/demo.git --base-branch main

This creates ~/.config/sandling/config.toml (or $XDG_CONFIG_HOME/sandling/config.toml). Add optional bootstrap and editor commands as shell-free argument arrays:

[profiles.demo]
repository_url = "https://example.test/demo.git"
base_branch = "main"
editor_command = ["code", "."]
bootstrap = [
  ["python3", "-m", "venv", ".venv"],
  ["{sandbox}/.venv/bin/python", "-m", "pip", "install", "-r", "requirements.txt"],
]

Recognised placeholders are {sandbox}, {profile}, and {branch}. The profile is your configuration; review it with the same calm suspicion you reserve for shell aliases copied from the internet.

Start work

Create a new branch from the profile's freshly fetched base branch:

sandling start demo --new-branch fix/parse-dates

Or check out an existing remote branch without merging or rebasing it:

sandling start demo fix/parse-dates

List known workspaces and mark one after its push is accepted:

sandling list
sandling flag fix_parse_dates-20261110-090000

In an interactive Bash shell, source scripts/sandling-shell.bash if you want successful sandling start calls to enter the newly created workspace. A Python process cannot move its parent shell; physics is rude but consistent.

Safe cleanup

Destroying requires an exact-name confirmation:

sandling destroy fix_parse_dates-20261110-090000

Normal destruction refuses dirty, untracked, unpushed, and upstream-less workspaces. --force bypasses those Git-state checks but still requires the exact workspace name. Use it slowly, after checking the path, and ideally after coffee.

Destroyed-workspace metadata remains for seven days. sandling prune-metadata removes only those expired records; it never removes a workspace directory. There is deliberately no clean-all and no remote-branch deletion command.

Security and scope

Sandling runs only the commands you place in a profile and never invokes a shell for bootstrap steps. It does not manage credentials, install system dependencies, configure project services, or make remote Git changes other than normal user-initiated pushes from a workspace.

Report vulnerabilities through the process in SECURITY.md. Contributions are welcome; see CONTRIBUTING.md.


Created by Camilla Buys. Build fast. Push clean. Leave no clones behind.

Metadata

Release files for sandling 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sandling 0.1.1
File Size Uploaded Provenance Actions
sandling-0.1.1.tar.gz 15.1 kB With provenance Details for sandling-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sandling 0.1.1
File Interpreter ABI Platform Actions
sandling-0.1.1-py3-none-any.whl Python 3 none any Details for sandling-0.1.1-py3-none-any.whl

Total release size: 27.1 kB

Release files / sandling-0.1.1.tar.gz

Download URL sandling-0.1.1.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5b5fb07e8d05cdfd7a5ee19b658e6defe4231e67d6cd8c0b778df26c62de9cb0
BLAKE2b-256 checksum
How to use checksums
e9cd15416ca3728b368df969cf28eb81523009454110a43b5fde3cca34a70ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / sandling-0.1.1-py3-none-any.whl

Download URL sandling-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aed360c4d67509c6eed813166157599d36455d966a62cbbb77fdaa2906d4546a
BLAKE2b-256 checksum
How to use checksums
e11b9895908ccaa6f2be898d8ae9cc723242a596459d5b4f9b21d204e9d84cfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for sandling 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sandling-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page