Waxmark
BrowsePacksRulesSkillsPromptsGuideAbout

Python services pack

Starter pack

Modern Python back-end rules: language best practices, FastAPI, Pydantic models, SQLAlchemy, pytest, and Docker packaging.

6 items · curated by waxmark

Rule✓ sealedCC0-1.0

Python

Python 3.10+ rules: PEP 8 layout and naming, grouped imports, one docstring style, builtin generic type hints, uv or Poetry environments, src layout with editable installs, pytest with parametrize, and idioms like context managers and enums.

Rule✓ sealedCC0-1.0

FastAPI

Guidelines for building maintainable, secure FastAPI services: domain-module layout, Annotated dependencies, pydantic-settings, thread-pool offloading, and structured logging.

Rule✓ sealedCC0-1.0

Pydantic

Definitive guidelines for writing robust, maintainable, and performant pydantic models in Python, focusing on v2.12.5 best practices.

Rule✓ sealedCC0-1.0

SQLAlchemy

SQLAlchemy 2.x rules for Python: typed DeclarativeBase models with Mapped, sessions as context managers, select() over Query, selectinload against N+1, bulk ORM inserts, and Alembic migrations.

Rule✓ sealedCC0-1.0

pytest

Rules for fast, reliable pytest suites: src layout, test naming, fixture scopes and teardown, parametrize, skip/xfail markers, pytest-mock, pytest-cov, and typed fixtures.

Rule✓ sealedCC0-1.0

Docker

Docker production rules. Pinned versions, multi-stage builds, non-root user, minimal attack surface.

Waxmark — every file sealed before it reaches your agent.

BrowsePacksGuideAboutSecurityTermsPrivacyTakedown