fh_commons

Common fasthtml components with different css styles to build web

Installation

Install latest from the GitHub:

$ pip install git+https://github.com/sky1ove/fh_commons.git

Documentation

  • To check source code with examples, go to nbs folder to check notebooks.

  • Documentation is hosted on: https://sky1ove.github.io/fh_commons/

How to use

from fasthtml.common import *
from fasthtml.jupyter import *

from fh_commons.static import *
from fh_commons.core import *


from getpass import getpass
token = getpass("Type your ngrok token: ")

url = start_ngrok(token)

app,rt = fast_app(live=True)
server = JupyUvi(app)


@rt
def test():
    return Titled('hi')

htmx(url,'/test')

Shut down server and kill ngrok terminal:

server.stop()
kill_ngrok()