MCPcopy
hub / github.com/coleifer/sqlite-web / open_browser_tab

Function open_browser_tab

sqlite_web/sqlite_web.py:1560–1569  ·  view source on GitHub ↗
(host, port)

Source from the content-addressed store, hash-verified

1558 sys.exit(exit_code)
1559
1560def open_browser_tab(host, port):
1561 url = 'http://%s:%s/' % (host, port)
1562
1563 def _open_tab(url):
1564 time.sleep(1.5)
1565 webbrowser.open_new_tab(url)
1566
1567 thread = threading.Thread(target=_open_tab, args=(url,))
1568 thread.daemon = True
1569 thread.start()
1570
1571def install_auth_handler(password):
1572 app.config['PASSWORD'] = password

Callers 1

configure_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected