python-patterns

Guide Python framework selection and project structure decisions.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/oalansilva/crypto --skill python-patterns-oalansilva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-patterns
Source: https://github.com/oalansilva/crypto/tree/main/.agent/skills/python-patterns
Command: npx skills add https://github.com/oalansilva/crypto --skill python-patterns-oalansilva

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python development decisions and best practices without copying code, helping you choose the right framework, patterns, and structure.

Core Features & Use Cases

  • Decision frameworks for API, web apps, and background tasks.
  • Async vs sync guidance, type-hint strategies, and project structure guidance.
  • Real-world decision examples across FastAPI, Django, Flask, and related tooling.

Quick Start

Start by selecting your framework based on your project context and follow the decision tree to apply best practices.

Frequently Asked Questions about python-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the best Python framework for my web app or API?

Choosing a Python framework requires evaluating your project context against a decision tree to select between FastAPI, Django, or Flask. This approach applies structured decision frameworks to align framework selection with your specific API and web app requirements.

What's the best way to decide between async and sync patterns in Python?

Deciding between async and sync patterns in Python depends on your background task and data tooling requirements. Using context-driven recommendations helps evaluate async patterns against industry best practices to determine the right concurrency model for your application.

How do I structure a Python project for scalability and best practices?

To structure a Python project for scalability, you should follow context-driven guidance on project layout and type-hint strategies. This provides a structured decision framework to organize your codebase aligned with industry best practices.

When do I need type hints in my Python development workflow?

You need type hints in Python development when you want to enforce best practices and improve code reliability across complex data tooling. Implementing a type-hint strategy solves the problem of ambiguous function signatures and improves API design maintainability.

Does this Python decision framework work for data tooling and scripting tasks?

Yes, this Python decision framework works for data tooling and scripting tasks by providing context-driven recommendations. It guides framework selection and pattern choices across API design, web apps, and scripting to satisfy specific project requirements.