Skip to main content

Small but powerful library for rendering and processing web forms

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formidable-0.14.1.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

formidable-0.14.1-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file formidable-0.14.1.tar.gz.

File metadata

  • Download URL: formidable-0.14.1.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for formidable-0.14.1.tar.gz
Algorithm Hash digest
SHA256 5b65cff13614e81ac74e07ec53c9d4e0a7ad85cdf0964e0c997f15a953c8ee6e
MD5 daa48a933acc37dfb5f4f88f3f3c212a
BLAKE2b-256 32a3689e4a09e5193d7f223d2b1ba7ca9f8c0e6dadad555d3e284e88060ad3d5

See more details on using hashes here.

File details

Details for the file formidable-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: formidable-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for formidable-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8cb40e475b8687773c73bdcb90ab230eaef2c55a96d1e4c1c220454409b27e
MD5 709e3f4aa50d3179830e5f6cdeb20068
BLAKE2b-256 5d605f77c9f4a0147ce64e99f6189989bffe6a27579cd7c157dbc822204fb1fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page