csle_rest_api package

Subpackages

Submodules

csle_rest_api.rest_api module

csle_rest_api.rest_api.create_app(static_folder: str)[source]

Creates and initializes the Flask App

Parameters

static_folder – path to the folder to serve static resources

Returns

the flask app

csle_rest_api.rest_api.start_server(static_folder: str, port: int = 7777, num_threads: int = 100, host: str = '0.0.0.0', https: bool = False) None[source]

Creates the flask app and serves it

Parameters
  • static_folder – path to the folder to server static resources

  • port – the port for serving

  • num_threads – number of threads for serving

  • host – the host string for serving

  • https – boolean flag whether to use https or not

Returns

None

Module contents