lang-python

Consolidate Python 3.13+ language features, libraries, and best practices into a coding reference.

8|Updated Mar 28, 2024
One-click install
npx skills add https://github.com/joncrangle/.dotfiles --skill lang-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-python
Source: https://github.com/joncrangle/.dotfiles/tree/main/dot_config/opencode/skills/lang-python
Command: npx skills add https://github.com/joncrangle/.dotfiles --skill lang-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to apply Python 3.13+ features, patterns, and tooling consistently across projects. This skill consolidates core Python concepts, popular libraries, and practical usage patterns into a single reference that can be loaded into context when coding.

Core Features & Use Cases

  • Python language fundamentals, modern typing patterns, and best practices.
  • Web frameworks and asynchronous patterns (FastAPI, Django, SQLAlchemy, Pydantic).
  • Production-grade patterns: dependency injection, testing with pytest, and security basics (JWT).
  • Real-world use cases: building APIs, data validation pipelines, and ORM-based data access.

Quick Start

Install Python 3.13+, set up a project with the recommended libraries, and begin implementing patterns described in this guide.

Frequently Asked Questions about lang-python

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

FAQPage Schema
How do I implement modern typing patterns and data validation in Python 3.13?

Modern Python typing and data validation are implemented using core language features alongside Pydantic. This ensures robust type checking, structured data models, and clear validation pipelines for APIs and scripts throughout your codebase.

What is the best way to structure a FastAPI project with SQLAlchemy and JWT authentication?

The best way to structure a FastAPI project involves applying production-grade patterns for dependency injection, ORM-based data access with SQLAlchemy, and security basics using JWT. This approach consolidates web framework tools into a single reference.

How do I set up pytest workflows for testing asynchronous Python code?

Pytest workflows for asynchronous Python code are set up using modern testing patterns and dependency injection. This enables reliable validation of async web APIs, data pipelines, and core service logic across your development scenarios.

Does this Python coding guide cover both small scripts and production services?

Yes, this Python coding guide covers both small scripts and production services. It applies practical development scenarios across fundamentals, web APIs, data validation, ORMs, and testing to support projects of varying scale.

How do I use Pydantic and SQLAlchemy together for data validation and ORM-based data access?

Pydantic and SQLAlchemy are used together by mapping validated Pydantic models to SQLAlchemy ORM schemas. This pattern provides robust data validation pipelines and structured ORM-based data access for your Python applications.

Can I use this reference to learn Python from fundamentals to building asynchronous APIs?

Yes, you can use this reference to learn Python from fundamentals to building asynchronous APIs. It consolidates language features, popular libraries, and practical usage patterns into a single guide covering web frameworks and async patterns.