Skip to main content

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.

Metadata

Release files for fasthtml_extn 0.0.6

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

Source distribution (sdist)

Source distribution for fasthtml_extn 0.0.6
File Size Uploaded
fasthtml_extn-0.0.6.tar.gz 5.9 kB Details

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / fasthtml_extn-0.0.6.tar.gz

Download URL fasthtml_extn-0.0.6.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
60d987ee9f61a7bd64956516e8b92c40b09c8a23178c1d5009ff69c15c911123
BLAKE2b-256 checksum
How to use checksums
d63c2b8820d6ee72a8013406a6c82f949285feb31e60d113ac5b3e68e232838c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64

Release files / fasthtml_extn-0.0.6-py3-none-any.whl

Download URL fasthtml_extn-0.0.6-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c6a4a1e504c43a527adb745c628ce255e03c1b8fa8cdc1f01c2d7953bf94d5
BLAKE2b-256 checksum
How to use checksums
f8018e053ce59cab6ad8d3357144338d511886e3d8c8932e5f0246ea8ede1c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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