Skip to content
github-actions[bot] edited this page Mar 10, 2026 · 2 revisions

python-snacks

A personal CLI tool for managing a local stash of reusable Python code snippets. Copy snippets in and out of projects with a single command, and manage multiple named stashes.

Quick Start

# Install
pipx install python-snacks

# Create your first stash
snack stash create default ~/snack-stash

# Browse what you have
snack list

# Pull snippets from a GitHub repo into your stash
snack stash add-remote owner/my-snippets

# Copy a snippet into your project
snack unpack auth/google_oauth.py

# Copy an improved snippet back into the stash
snack pack auth/google_oauth.py

Pages

Links

Clone this wiki locally