INNER CODE UNIT · Python
get_studio_url
ArcadeData/arcadedb · bindings/python/src/arcadedb_embedded/server.py:199
def get_studio_url(self) -> str:
"""Get the URL for the Studio web interface."""
host = self._config.get("host", "localhost")
if host in ("0.0.0.0", "::"): # nosec B104
host = "localhost"
port = self.get_http_port()
return f"http://{host}:{port}/"
def __enter__(self):
"""Context manager entry - starts the server."""
self.start()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
"""Context manager exit - stops the server."""
self.stop()