--- id: wtforms-alchemy version: "0.19.1" license: BSD license_treatment: permissive maintenance: active --- # WTForms-Alchemy — Generates WTForms forms from SQLAlchemy models. License: permissive · Maintenance: active · Downloads: 89.0K/mo ## What it is and what it does WTForms-Alchemy bridges SQLAlchemy models and WTForms by introspecting your database schema and automatically creating corresponding form fields. Instead of manually defining form classes that duplicate your model structure, you inherit from ModelForm, specify your SQLAlchemy model in the Meta class, and the library generates appropriate field types, validators, and relationships for you. The package depends on SQLAlchemy, WTForms, WTForms-Components, and SQLAlchemy-Utils to handle the model inspection and form generation. It's designed for web developers building CRUD interfaces where forms closely mirror database tables, reducing boilerplate and keeping form definitions in sync with schema changes. Use it for: - Quickly scaffold admin forms for CRUD operations on existing SQLAlchemy models without manual field duplication. - Generate user registration or profile edit forms that automatically validate against your database constraints. - Build data entry forms for multi-table applications where form structure mirrors your ORM model hierarchy. - Reduce maintenance burden when database schema changes by auto-updating form fields instead of manual edits. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Automatically generates WTForms form classes from SQLAlchemy model definitions, eliminating the need to manually write form fields that mirror your database schema. Yes, if you use SQLAlchemy and WTForms together. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a genuine pain point—manual form-model synchronization. The BSD license poses no restrictions. Install it when you find yourself writing form classes that duplicate your model structure. ## Install pip install wtforms-alchemy uv add wtforms-alchemy poetry add wtforms-alchemy ## Installing WTForms-Alchemy Before you install: Low friction install with four well-established runtime dependencies. Actively maintained with last commit on 2026-05-14 and latest release on 2025-08-11. License in practice: BSD license permits commercial and private use with minimal restrictions; suitable for most projects. Quickstart: pip install wtforms-alchemy from wtforms_alchemy import ModelForm class UserForm(ModelForm): class Meta: model = User Verify before relying: - Whether the package supports the latest SQLAlchemy 2.x API or is limited to 1.x patterns - Degree of customization available for auto-generated field types and validation rules - Performance characteristics when generating forms from large or deeply nested models ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 89.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags wtforms from sqlalchemy models, auto-generate forms from database models, sqlalchemy form generation, wtforms model integration, database schema to web forms, form-generation, sqlalchemy-integration, web-framework [View on SkillFed](https://skillfed.io/packages/wtforms-alchemy) · [View on PyPI](https://pypi.org/project/wtforms-alchemy/)