python-patterns

Guide Python project design decisions on frameworks, async, and type hints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers think critically about Python development patterns and make informed architectural decisions rather than copying examples.

Core Features & Use Cases

  • Framework selection guidance based on project requirements (API, web, script).
  • Async vs sync decision guidance aligned with I/O patterns and team familiarity.
  • Typing strategy guidance with Python type hints and Pydantic validation considerations.
  • Clear project-structure recommendations and best-practice patterns for small to large projects.
  • Real-world scenarios illustrating decision criteria and trade-offs.

Quick Start

Tell me your Python project goals and constraints to get a tailored pattern recommendation.

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 project?

To choose a Python framework, evaluate your project requirements like API, web, or script goals against framework selection criteria. This approach provides decision guidelines and best-practice comparisons rather than copy-paste code to ensure informed architectural choices.

When should I use async vs sync Python patterns?

You should use async Python patterns when your application is heavily I/O-bound, while sync patterns suit CPU-bound tasks. The decision relies on evaluating your I/O patterns and team familiarity to determine the most appropriate execution model.

What is the best way to structure a large Python project?

The best way to structure a large Python project is applying recommended best-practice patterns that scale. Clear project-structure recommendations help organize code logically from small scripts to large applications without relying on copy-paste templates.

What type-hint strategy should I use with Python and Pydantic?

Your type-hint strategy should integrate Python type hints with Pydantic validation considerations to enforce data integrity. Typing strategy guidance helps determine the appropriate level of strictness for your project's design time.

Can I get copy-paste code examples for Python architectural patterns?

No, you cannot get copy-paste code examples, as the goal is to help you think critically about Python development patterns. It provides decision criteria, pattern comparisons, and best-practice guidelines to foster informed architectural design rather than copying templates.