Skip to main content

Formidable

coverage: 100% license: MIT

A small but powerful library for rendering and processing web forms

Documentation: formidable.scaletti.dev.

Features

Formidable is small, modern, and handles the advanced scenarios you'll actually encounter in production applications.

  • Dynamic Nested Forms That Actually Work

    Formidable's NestedForms field handles complex scenarios like users dynamically adding/removing subforms with proper deletion tracking, primary key management, and JavaScript integration out of the box.

  • Subforms

    FormField elegantly handles nested data structures (JSON fields, one-to-one relationships).

  • Multiple ORM Support

    Out-of-the-box integration with most ORMs: SQLAlchemy, Peewee, Pony ORM, Tortoise ORM, and SQLModel.

  • Translatable/customizable messages

    Formidable's validation messages were designed to be easily translated or replaced.

  • Modern HTML-First Philosophy

    Built for the modern era of HTMX, Turbo, and "HTML over the wire" patterns. Formidable embraces native HTML forms instead of fighting them, while still providing optional render helpers when you need them.

  • Render flexibility

    Unlike other libraries where you're often stuck between manual HTML or opinionated widgets, Formidable lets you choose and mix and match as needed.

Vision

By Internet standards, HTML forms are an ancient technology. At some point, we even forgot they existed, and for about 10 years, everyone was super excited about sending JSON over everything, all of the time.

But now we are realizing "Oh, do you know what? HTML is actually really good!". It can be sent directly to a browser, and the browser can send form data back without any translation step. This native functionality is powerful and efficient.

However, in the world of Python web frameworks there is a problem: web forms had always been somewhat awkward. In fact, they were a big reason to use JavaScript in the first place. The existing libraries lack support for features like nested forms and/or are embedded in a particular framework.

That's why I built Formidable, a library that, although small, can handle all the advanced scenarios like subforms, dynamic nested forms, custom validators, translatable messages, integration with any ORM and template system, and more. I hope you enjoy it.

Contributing Back

Find a bug? Head over to our issue tracker and we'll do our best to help. We love pull requests, too!

Metadata

Release files for formidable 0.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for formidable 0.21.0
File Size Uploaded
formidable-0.21.0.tar.gz 44.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for formidable 0.21.0
File Interpreter ABI Platform
formidable-0.21.0-py3-none-any.whl Python 3 none any Details

Total release size: 85.5 kB

Release files / formidable-0.21.0.tar.gz

Download URL formidable-0.21.0.tar.gz
Size 44.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c1242e5b048e107ff87904953bf5c0e604c504dbc18d62ea4cff429a0363963
BLAKE2b-256 checksum
How to use checksums
0705fac60c06d711aab41e01c2ae7c0151f21c9645190de8b063f86a67bee9c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / formidable-0.21.0-py3-none-any.whl

Download URL formidable-0.21.0-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fa08cd05ad2c02bcdc83cda2ce3d3b4901c7e49df1a4586b26c0a613facfda5
BLAKE2b-256 checksum
How to use checksums
b4e80f4839d3c0d612fe5e87ed02dd09c4294ea06659443d54bcf5f38da9b165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.21.0 This release

2 release files

0.20.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page