INNER CODE UNIT · Python

get_http_port

ArcadeData/arcadedb · bindings/python/src/arcadedb_embedded/server.py:195

    def get_http_port(self) -> int:
        """Get the HTTP port the server is listening on."""
        return self._config.get("http_port", 2480)

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…