Start Bandwidth API Server Module
- emulations.start_bandwidthapi_server.start_bandwidthapi_server()
Start the bandwidth API server.
This function activates a virtual environment, changes the current working directory to the 'bandwidthapi' folder, and starts the FastAPI server using uvicorn in the background. The stdout and stderr of the server are redirected to log files. It also checks for the readiness of the server and logs any errors.
Global Variables:
bandwidthapi_server_pid (int): The process ID of the bandwidth API server.
Returns: None
This module contains a function to start the bandwidth API server. It activates a virtual environment, changes the current working directory to the 'bandwidthapi' folder, and starts the FastAPI server using uvicorn in the background. The stdout and stderr of the server are redirected to log files. It also checks for the readiness of the server and logs any errors.