class WebDeployToolkit(BaseToolkit):
def __init__( self, timeout: Optional[float] = None, add_branding_tag: bool = True, logo_path: str = '../camel/misc/favicon.png', tag_text: str = 'Created by CAMEL', tag_url: str = 'https://github.com/camel-ai/camel', remote_server_ip: Optional[str] = None, remote_server_port: int = 8080 ):
None
True
../camel/misc/favicon.png
Created by CAMEL
https://github.com/camel-ai/camel
8080
def _validate_ip(self, ip: str):
def _validate_port(self, port: int):
def _sanitize_text(self, text: str):
def _validate_url(self, url: str):
def _validate_subdirectory(self, subdirectory: Optional[str]):
def _is_port_available(self, port: int):
def _load_server_registry(self):
def _save_server_registry(self):
def _is_process_running(self, pid: int):
def _build_custom_url(self, domain: str, subdirectory: Optional[str] = None):
def _load_logo_as_data_uri(self, logo_path: str):
def _get_default_logo(self):
def deploy_html_content( self, html_content: Optional[str] = None, html_file_path: Optional[str] = None, file_name: str = 'index.html', port: int = 8000, domain: Optional[str] = None, subdirectory: Optional[str] = None ):
index.html
8000
example.com
user123
def _deploy_to_remote_server( self, html_content: str, subdirectory: Optional[str] = None, domain: Optional[str] = None ):
def _deploy_to_local_server( self, html_content: str, file_name: str, port: int, domain: Optional[str], subdirectory: Optional[str] ):
def _serve_static_files(self, directory: str, port: int):
def deploy_folder( self, folder_path: str, port: int = 8000, domain: Optional[str] = None, subdirectory: Optional[str] = None ):
def stop_server(self, port: int):
def list_running_servers(self):
def get_tools(self):