Colab API Server is a Python library that helps set up a REST API server on a Google Colab instance. It allows users to execute code remotely from their local machines using the colab_remote
library.
pip install --upgrade --no-cache-dir git+https://github.com/ekoshv/Colab_Server.git
To set up the Colab API server, follow these steps:
- Import the ColabAPIServer class.
from colab_api_server import ColabAPIServer
- Initialize the ColabAPIServer object.
colab_api_server = ColabAPIServer()
- Run the API server.
colab_api_server.run()
The server will start and provide you with a public URL. Use this URL to interact with the API from your local machine using the colab_remote library.