MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / get_app

Function get_app

demos/doc_demo.py:130–147  ·  view source on GitHub ↗

PyWebIO demos from document Run the demos from the document online.

()

Source from the content-addressed store, hash-verified

128
129
130def get_app():
131 """PyWebIO demos from document
132
133 Run the demos from the document online.
134 """
135 app = {}
136 try:
137 demos = listdir(path.join(here_dir, 'doc_demos'))
138 except Exception:
139 demos = []
140
141 for name in demos:
142 code = open(path.join(here_dir, 'doc_demos', name)).read()
143 title, code = code.split('\n\n', 1)
144 app[name] = partial(handle_code, code=code, title=title)
145 app[name] = config(title=name, description=title)(app[name])
146
147 return app
148
149
150main = get_app()

Callers 1

doc_demo.pyFile · 0.70

Calls 1

configFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…