moai-lang-python

Develop Python 3.13+ APIs, web apps, and data pipelines with FastAPI, Django, and pytest.

1.2k|214|Updated Sep 16, 2025
One-click install
npx skills add https://github.com/modu-ai/moai-adk --skill moai-lang-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-python
Source: https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-lang-python
Command: npx skills add https://github.com/modu-ai/moai-adk --skill moai-lang-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, mypy, ruff, uv, fastapi, pydantic, sqlalchemy, and includes examples (resource) and references (resource) components.

What problem does it solve?

Staying current with Python's rapid evolution and best practices is challenging. This Skill provides expert guidance for Python 3.13+, integrating the latest testing, quality, and package management tools to streamline your development workflow.

Core Features & Use Cases

  • Modern TDD Workflow: Implement test-driven development using pytest 8.4.2 with async support.
  • Unified Code Quality: Enforce ruff 0.13.1 for linting and formatting, replacing multiple tools.
  • Advanced Type Safety: Leverage mypy 1.8.0 and Pydantic 2.7.0 for robust static and runtime type validation.
  • Use Case: When upgrading a Python 3.12 project to 3.13, this Skill can guide you through new features like TaskGroup for async concurrency and update your pyproject.toml for ruff and uv.

Quick Start

Setup a new Python 3.13 project

uv venv --python 3.13 source .venv/bin/activate uv add pytest ruff mypy fastapi pydantic

Now you're ready to write modern Python code with best practices.

Frequently Asked Questions about moai-lang-python

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

FAQPage Schema
How do I set up a modern Python 3.13 project with testing and linting?

Use `uv` to create a Python 3.13 virtual environment, then add pytest, ruff, and mypy. These tools provide test-driven development, unified linting and formatting, and static type checking in a single workflow.

Can I use pytest with async code in Python 3.13?

Yes, pytest 8.4.2 has built-in async support. Write async test functions directly and pytest handles execution, letting you test asyncio patterns and TaskGroup concurrency without additional plugins.

What's the best way to validate data in FastAPI with Python 3.13?

Use Pydantic v2.7.0 for runtime validation and mypy for static type checking. Pydantic models integrate seamlessly with FastAPI routes, catching invalid data before it reaches your handlers while maintaining type safety.

How do I replace multiple linters and formatters with a single tool?

Ruff 0.13.1 consolidates linting and formatting into one fast tool. Configure it in `pyproject.toml` to enforce code quality standards across your project, eliminating the need to manage separate tools.

Does SQLAlchemy work with async in Python 3.13?

Yes, SQLAlchemy 2.0 supports async operations. Pair it with asyncio patterns and TaskGroup for concurrent database queries in data pipelines and API services while maintaining type safety with mypy.

When upgrading from Python 3.12 to 3.13, what should I update in my project?

Update your `pyproject.toml` to target Python 3.13, migrate to ruff for linting, leverage new TaskGroup for async concurrency, and use uv for faster dependency management and virtual environment setup.