Skip to main content

An fasthtml extension framework to build webapps using python.

Project description

FastHTML-Extn

FastHTML-Extn is a small and opinionated framework for building web applications. It provides a simple and intuitive way to create dynamic HTML pages using FastHTML.

It's inspired by Next.js App approach.

Install

pip install fasthtml-extn

Usage

from fasthtml_extn import create_app, serve

app, rt = create_app(live=False)

serve()

Features

  • Autogeneration of routes based on folder structure.
  • Layouts ...
  • Pages ...

TODO:

  • Route pages like app/**/*/page.py
  • Route layouts like app/**/*/layout.py
  • Route expected errors like app/**/*/except.py
  • [] Route not found like app/**/*/not_found.py
  • [] Route apis like app/**/*/router.py
  • [] Add more tests

Ideas:

  • App Seeding with ootb working apps (similar to react-create-app)
  • Add more components as helpers. Maybe those should be on it's own library help needed here
  • Auto creation of folders: ask user from CLI
  • Create a CLI for adding pages or routes

Contributing

We welcome contributions from the community! If you have any bug reports, feature requests, or pull requests, please submit them to our GitHub repository.

License

FastHTML-Extn is released under the MIT License. See the LICENSE file for more information.

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

fasthtml_extn-0.0.5.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

fasthtml_extn-0.0.5-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

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