vudovn avatar

Python Patterns

This teaches you Python decision-making rather than dumping boilerplate. It walks through framework selection (FastAPI vs Django vs Flask based on actual requirements), when to go async vs sync, type hint strategies, and project structure patterns. The approach is deliberately principle-based: it gives you decision trees and asks questions like "is this API-only or full-stack?" instead of prescribing one solution. Covers FastAPI async patterns, Django 5.0+ async support, background task options (Celery vs ARQ vs simple BackgroundTasks), and testing strategies. Most useful when you're starting a new Python project or refactoring and need to justify architectural choices beyond "this is what I always use."

skills.sh installs
119
GitHub stars
7.6K
last updated
Jun 3, 2026

Install

$ npx -y skills add vudovn/antigravity-kit --skill python-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Python Patterns

Python development principles and decision-making. Learn to THINK, not memorize patterns.


⚠️ How to Use This Skill

This skill teaches decision-making principles, not fixed code to copy.

  • ASK user for framework preference when unclear
  • Choose async vs sync based on CONTEXT
  • Don't default to same framework every time

1. Framework Selection

Decision Tree

What are you building?
│
├── API-first / Microservices
│   └── FastAPI (async, modern, fast)
│
├── Full-stack web / CMS / Admin
│   └── Django (batteries-included)
│
├── Simple / Script / Learning
│   └── Flask (minimal, flexible)
│
├── AI/ML API serving
│   └── FastAPI (Pydantic, async, uvicorn)
│
└── Background workers
    └── Celery + any framework

Comparison Principles

FactorFastAPIDjangoFlask
Best forAPIs, microservicesFull-stack, CMSSimple, learning
AsyncNativeDjango 5.0+Via extensions
AdminManualBuilt-inVia extensions
ORMChoose your ownDjango ORMChoose your own
Learning curveLowMediumLow

Sponsors

Details

Repository
github.com/vudovn/antigravity-kit
Category
Python
First seen
Jun 3, 2026

More from vudovn/antigravity-kit

All 30

Recommended

More Python
1firebase avatardeveloping-genkit-pythonfirebase/agent-skillsDevelop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit e33.6Kskills.sh installs
2wshobson avatarfastapi-templateswshobson/agentsCreate production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications26.5Kskills.sh installs
3wshobson avatarpython-error-handlingwshobson/agentsPython error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designin14.7Kskills.sh installs
4github avatarpytest-coveragegithub/awesome-copilotRun pytest tests with coverage, discover lines missing coverage, and increase coverage to 100%.13Kskills.sh installs
5wshobson avatarpython-background-jobswshobson/agentsPython background job patterns including task queues, workers, and event-driven architecture. Use when implementing async task processing, job queues, long-runn11.6Kskills.sh installs
6affaan-m avatarpython-testingaffaan-m/everything-claude-codepython testing6.6Kskills.sh installs