Add pip package, fix docs path
This commit is contained in:
parent
087cc7dc97
commit
fde03662be
|
@ -46,9 +46,10 @@ api.add_resource(IdfGenerator, '/v1.4/energy-plus/idf-generator')
|
|||
# workflows
|
||||
api.add_resource(Costs, '/v1.4/workflow/costs')
|
||||
api.add_resource(EnergyPlus, '/v1.4/workflow/energy-plus')
|
||||
api.add_resource(InselMonthlyEnergyBalance, '/v1.4/workflow/insel-monthly-energy-balance')
|
||||
api.add_resource(InselMonthlyEnergyBalance,
|
||||
'/v1.4/workflow/insel-monthly-energy-balance')
|
||||
|
||||
yml_path = Path('./docs/openapi-specs.yml').resolve()
|
||||
yml_path = Path('./hub/docs/openapi-specs.yml').resolve()
|
||||
|
||||
with open(yml_path, "r") as stream:
|
||||
swagger_config = {
|
||||
|
@ -78,5 +79,6 @@ def home():
|
|||
|
||||
sh.debug_mode = True
|
||||
|
||||
threading.Thread(target=sh.expired_sessions_collector, daemon=True, args="5").start()
|
||||
threading.Thread(target=sh.expired_sessions_collector,
|
||||
daemon=True, args="5").start()
|
||||
app.run(port=15789, host="0.0.0.0", debug=sh.debug_mode)
|
||||
|
|
28
configs/control.json
Normal file
28
configs/control.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"serviceName": "session",
|
||||
"dotenv": ".env",
|
||||
"environment": "prod",
|
||||
"httpRequestDefinitions": {
|
||||
"sessionStart": {
|
||||
"put": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"appUUID": ""
|
||||
}
|
||||
},
|
||||
"sessionEnd": {
|
||||
"put": {
|
||||
"sessionID": "",
|
||||
"token": "",
|
||||
"appUUID": ""
|
||||
}
|
||||
},
|
||||
"keepSessionAlive": {
|
||||
"put": {
|
||||
"sessionID": "",
|
||||
"token": "",
|
||||
"appUUID": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
hub_api/control/__pycache__/session.cpython-39.pyc
Normal file
BIN
hub_api/control/__pycache__/session.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hub_api/control/__pycache__/uptime.cpython-39.pyc
Normal file
BIN
hub_api/control/__pycache__/uptime.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hub_api/helpers/__pycache__/session_helper.cpython-39.pyc
Normal file
BIN
hub_api/helpers/__pycache__/session_helper.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hub_api/persistence/__pycache__/retrofit_results.cpython-39.pyc
Normal file
BIN
hub_api/persistence/__pycache__/retrofit_results.cpython-39.pyc
Normal file
Binary file not shown.
|
@ -28,3 +28,4 @@ cerc-hub
|
|||
python-dotenv
|
||||
mapbox_earcut
|
||||
cerc-costs
|
||||
cerc-co2-emission
|
Loading…
Reference in New Issue
Block a user