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.6.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file fasthtml_extn-0.0.6.tar.gz
.
File metadata
- Download URL: fasthtml_extn-0.0.6.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d987ee9f61a7bd64956516e8b92c40b09c8a23178c1d5009ff69c15c911123 |
|
MD5 | 30e6a8f0cfd1c34dba3f3861791ad518 |
|
BLAKE2b-256 | d63c2b8820d6ee72a8013406a6c82f949285feb31e60d113ac5b3e68e232838c |
File details
Details for the file fasthtml_extn-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: fasthtml_extn-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c6a4a1e504c43a527adb745c628ce255e03c1b8fa8cdc1f01c2d7953bf94d5 |
|
MD5 | c8ab5ba9f10b00fca537d2963a548ec9 |
|
BLAKE2b-256 | f8018e053ce59cab6ad8d3357144338d511886e3d8c8932e5f0246ea8ede1c06 |