Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 817 Bytes

README.md

File metadata and controls

52 lines (32 loc) · 817 Bytes

fh_commons

Installation

Install latest from the GitHub:

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

Documentation

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()