Python Best Practices
Skill Verified ActivePython/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure. Use when writing Python code, reviewing FastAPI projects, or learning FastAPI conventions.
To guide developers in writing clean, maintainable, and convention-aligned Python code for FastAPI projects by detailing modern best practices.
Features
- Python/FastAPI coding standards
- Async patterns and best practices
- Pydantic v2 schema usage
- SQLAlchemy 2.0 patterns
- Project structure guidance
Use Cases
- Writing new Python/FastAPI code following best practices.
- Reviewing existing FastAPI projects for adherence to standards.
- Learning modern Python and FastAPI conventions.
Non-Goals
- Providing runnable code snippets directly within the skill.
- Covering advanced deployment or infrastructure concerns.
Installation
First, add the marketplace
/plugin marketplace add spartan-stratos/spartan-ai-toolkit/plugin install toolkit@spartan-marketplaceQuality Score
VerifiedSimilar Extensions
FastAPI Expert
98Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.
Pydantic Validation
99Python data validation using type hints and runtime type checking with Pydantic v2's Rust-powered core for high-performance validation in FastAPI, Django, and configuration management.
Celery
98Distributed task queue system for Python enabling asynchronous execution of background jobs, scheduled tasks, and workflows across multiple workers with Django, Flask, and FastAPI integration.
Sqlalchemy Orm
75SQLAlchemy Python SQL toolkit and ORM with powerful query builder, relationship mapping, and database migrations via Alembic
Csharp Async
100Get best practices for C# async programming
Embedding Strategies
100Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.