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> |
||
|---|---|---|
| .. | ||
| mycopunk | ||
| tests | ||
| README.md | ||
| pyproject.toml | ||
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 scaffoldmycopunk design list- List all designsmycopunk design export- Export to print formatsmycopunk design validate- Validate requirements
POD Integration
mycopunk product create- Create product on PODmycopunk product push- Push design updatesmycopunk product list- List productsmycopunk mockup generate- Generate mockups
Batch Operations
mycopunk batch export- Export all designsmycopunk 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)