This PR writes rewrites the module client_api.py into a server. The changes that are needed to make this happen are as follows:
main.py is added back in, with the function initialize_system. It should be the only way to correctly initialize a Data Station instance.
The function initialize_system() can be called locally for testing, e.g. ds = initialize_system().
initalize_system() is also called by client_api.py when starting DS in server mode, which creates a flask server that passes API calls to DataStation. Currently the way to start DS in server mode is to run python -m clientapi.client_api
This PR writes rewrites the module
client_api.py
into a server. The changes that are needed to make this happen are as follows:main.py
is added back in, with the functioninitialize_system
. It should be the only way to correctly initialize a Data Station instance.initialize_system()
can be called locally for testing, e.g.ds = initialize_system()
.initalize_system()
is also called byclient_api.py
when starting DS in server mode, which creates a flask server that passes API calls to DataStation. Currently the way to start DS in server mode is to runpython -m clientapi.client_api