mycopunk-swag/cli
Jeff Emmett a937a0b978 feat: Initialize mycopunk-swag repository
Phase 1 implementation:
- CLI scaffolding with Typer (design, product, mockup, catalog commands)
- Design management with templates (sticker, tshirt, print)
- Export automation via Inkscape CLI
- POD provider base classes (Printful, Prodigi)
- Product catalog configuration (products.yaml)
- Design guidelines and workflow documentation
- Helper scripts (batch-export, generate-mockups, sync-catalog)
- SVG templates for common product sizes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 19:26:58 +01:00
..
mycopunk feat: Initialize mycopunk-swag repository 2026-01-24 19:26:58 +01:00
tests feat: Initialize mycopunk-swag repository 2026-01-24 19:26:58 +01:00
README.md feat: Initialize mycopunk-swag repository 2026-01-24 19:26:58 +01:00
pyproject.toml feat: Initialize mycopunk-swag repository 2026-01-24 19:26:58 +01:00

README.md

Mycopunk CLI

Command-line tool for managing mycopunk merchandise and print-on-demand fulfillment.

Installation

# Install in development mode
pip install -e .

# Or install with dev dependencies
pip install -e ".[dev]"

Quick Start

# Create a new sticker design
mycopunk design new stickers/my-design --template=sticker-3x3

# Export to print-ready PNG
mycopunk design export stickers/my-design

# Validate against POD requirements
mycopunk design validate stickers/my-design

# Create product on Prodigi (sandbox mode)
mycopunk product create stickers/my-design --provider=prodigi --sandbox

Commands

See the full CLI Reference for all commands.

Design Management

  • mycopunk design new - Create design scaffold
  • mycopunk design list - List all designs
  • mycopunk design export - Export to print formats
  • mycopunk design validate - Validate requirements

POD Integration

  • mycopunk product create - Create product on POD
  • mycopunk product push - Push design updates
  • mycopunk product list - List products
  • mycopunk mockup generate - Generate mockups

Batch Operations

  • mycopunk batch export - Export all designs
  • mycopunk batch push - Push all to POD

Configuration

Copy ../config/.env.example to ../config/.env and add your API keys:

PRINTFUL_API_TOKEN=your_token
PRODIGI_API_KEY_SANDBOX=your_sandbox_key
PRODIGI_API_KEY_LIVE=your_live_key

Development

# Run tests
pytest

# Format code
black mycopunk/

# Lint
ruff check mycopunk/

# Type check
mypy mycopunk/

Requirements

  • Python 3.10+
  • Inkscape (for SVG export)
  • ImageMagick (optional, for local mockups)