Install latest from the GitHub:
$ pip install git+https://github.com/sky1ove/fh_commons.git
-
To check source code with examples, go to
nbs
folder to check notebooks. -
Documentation is hosted on: https://sky1ove.github.io/fh_commons/
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()