OpenGeodeWeb-Back 5.6.5__py3-none-any.whl → 5.6.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,6 @@ class Config(object):
12
12
  DEFAULT_PORT = "5000"
13
13
  CORS_HEADERS = "Content-Type"
14
14
  UPLOAD_FOLDER = "./uploads"
15
- DESKTOP_APP = False
16
15
  REQUEST_COUNTER = 0
17
16
  LAST_REQUEST_TIME = time.time()
18
17
  LAST_PING_TIME = time.time()
@@ -43,7 +43,6 @@ def teardown_request(current_app):
43
43
 
44
44
 
45
45
  def kill_task(current_app):
46
- DESKTOP_APP = bool(current_app.config.get("DESKTOP_APP"))
47
46
  REQUEST_COUNTER = int(current_app.config.get("REQUEST_COUNTER"))
48
47
  LAST_PING_TIME = float(current_app.config.get("LAST_PING_TIME"))
49
48
  LAST_REQUEST_TIME = float(current_app.config.get("LAST_REQUEST_TIME"))
@@ -52,15 +51,19 @@ def kill_task(current_app):
52
51
  minutes_since_last_request = (current_time - LAST_REQUEST_TIME) / 60
53
52
  minutes_since_last_ping = (current_time - LAST_PING_TIME) / 60
54
53
 
55
- if (
56
- (
57
- (minutes_since_last_request > MINUTES_BEFORE_TIMEOUT)
58
- and (DESKTOP_APP == False)
59
- )
60
- or (minutes_since_last_ping > MINUTES_BEFORE_TIMEOUT)
61
- ) and (REQUEST_COUNTER == 0):
62
- print("Server timed out due to inactivity, shutting down...", flush=True)
63
- os._exit(0)
54
+ if REQUEST_COUNTER > 0:
55
+ return
56
+ if MINUTES_BEFORE_TIMEOUT == 0:
57
+ return
58
+ if minutes_since_last_ping > MINUTES_BEFORE_TIMEOUT:
59
+ kill_server()
60
+ if minutes_since_last_request > MINUTES_BEFORE_TIMEOUT:
61
+ kill_server()
62
+
63
+
64
+ def kill_server():
65
+ print("Server timed out due to inactivity, shutting down...", flush=True)
66
+ os._exit(0)
64
67
 
65
68
 
66
69
  def versions(list_packages: list):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 5.6.5
3
+ Version: 5.6.6
4
4
  Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
@@ -15,30 +15,29 @@ Requires-Dist: asgiref==3.8.1
15
15
  Requires-Dist: attrs==25.3.0
16
16
  Requires-Dist: blinker==1.9.0
17
17
  Requires-Dist: click==8.1.8
18
- Requires-Dist: colorama==0.4.6
19
18
  Requires-Dist: flask[async]==3.1.0
20
19
  Requires-Dist: flask-cors==5.0.1
21
- Requires-Dist: geode-background==9.1.3
22
- Requires-Dist: geode-common==33.7.0
23
- Requires-Dist: geode-conversion==6.2.6
24
- Requires-Dist: geode-explicit==6.1.34
25
- Requires-Dist: geode-implicit==3.7.3
26
- Requires-Dist: geode-numerics==6.0.2
27
- Requires-Dist: geode-simplex==9.2.3
20
+ Requires-Dist: geode-background==9.1.5
21
+ Requires-Dist: geode-common==33.7.2
22
+ Requires-Dist: geode-conversion==6.2.7
23
+ Requires-Dist: geode-explicit==6.1.35
24
+ Requires-Dist: geode-implicit==3.7.4
25
+ Requires-Dist: geode-numerics==6.0.3
26
+ Requires-Dist: geode-simplex==9.2.5
28
27
  Requires-Dist: geode-viewables==3.0.12
29
28
  Requires-Dist: itsdangerous==2.2.0
30
29
  Requires-Dist: jinja2==3.1.6
31
30
  Requires-Dist: jsonschema==4.23.0
32
31
  Requires-Dist: jsonschema-specifications==2024.10.1
33
32
  Requires-Dist: markupsafe==3.0.2
34
- Requires-Dist: opengeode-core==15.17.7
33
+ Requires-Dist: opengeode-core==15.17.8
35
34
  Requires-Dist: opengeode-geosciences==8.4.3
36
35
  Requires-Dist: opengeode-geosciencesio==5.3.8
37
36
  Requires-Dist: opengeode-inspector==6.3.11
38
37
  Requires-Dist: opengeode-io==7.1.5
39
38
  Requires-Dist: referencing==0.36.2
40
39
  Requires-Dist: rpds-py==0.24.0
41
- Requires-Dist: typing-extensions==4.13.1
40
+ Requires-Dist: typing-extensions==4.13.2
42
41
  Requires-Dist: werkzeug==3.1.3
43
42
  Dynamic: license-file
44
43
 
@@ -1,9 +1,9 @@
1
1
  opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- opengeodeweb_back/app_config.py,sha256=bZIs0giTA0cYJJYbt25ZHYlHdsOy82h5xSxdOitgR4A,752
2
+ opengeodeweb_back/app_config.py,sha256=gJfYxDJOa_PYLqjqgdXacp3W3F109uujE9LGPvzHOkc,728
3
3
  opengeodeweb_back/geode_functions.py,sha256=ei0eI3pWMqzrhgI5ta5HtnoRoNs-GCqtkXe5arAObZE,8906
4
4
  opengeodeweb_back/geode_objects.py,sha256=4XH0TGujHw3LIBIzPLBa2eqxyfjVLo9hywKYxXEp-zU,24372
5
5
  opengeodeweb_back/test_utils.py,sha256=gvRPOzin4nI5TKuB-AFgIxcekTOYM4h7yUYk0tYIZFI,820
6
- opengeodeweb_back/utils_functions.py,sha256=18kp8M3bnrlu692qj-ymJJPA1hTpPjx_xl9oVi5qGyg,4120
6
+ opengeodeweb_back/utils_functions.py,sha256=otjE6XAZ_KXbaPipad3ivqFsTGGr8lqz1AhqPWgeE9g,4096
7
7
  opengeodeweb_back/routes/blueprint_routes.py,sha256=oDhoXIX5XIaaRa-_CEphwRmIxhuUYOS2spB2i1zOc8k,13818
8
8
  opengeodeweb_back/routes/schemas/allowed_files.json,sha256=pRsGf39LiJpl3zEGLg4IqvRtm7iUx3Wq4Tb4tSFXGV0,234
9
9
  opengeodeweb_back/routes/schemas/allowed_objects.json,sha256=oy_YYpFzgDICx-keWqNIUpQM3zzB4eE3H6mPNxH9rWc,361
@@ -19,8 +19,8 @@ opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=pvvEdaC7bNASPMrl
19
19
  opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=m0EqxlvKojXVxK5Csucodu3rq1YMVJPwXJN_Wreb3qc,355
20
20
  opengeodeweb_back/routes/schemas/upload_file.json,sha256=LJ3U3L5ApKuQDVFIpVT_y2alq4HW_suTvZ3HUucNbhg,219
21
21
  opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=bya9KGtTmHFWjD-ur0_0UAY2yf3KkMeuNrk6E1UkjLM,358
22
- opengeodeweb_back-5.6.5.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
23
- opengeodeweb_back-5.6.5.dist-info/METADATA,sha256=QuSpEKUB4qOUBXgO4-E9sYQ9q7cwe7R_X8bUJZu0Jn4,3109
24
- opengeodeweb_back-5.6.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
25
- opengeodeweb_back-5.6.5.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
26
- opengeodeweb_back-5.6.5.dist-info/RECORD,,
22
+ opengeodeweb_back-5.6.6.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
23
+ opengeodeweb_back-5.6.6.dist-info/METADATA,sha256=ropYtbODAv_0o_u7HCkkAjvlftJ_A33GTO0NWzhrnhg,3078
24
+ opengeodeweb_back-5.6.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
25
+ opengeodeweb_back-5.6.6.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
26
+ opengeodeweb_back-5.6.6.dist-info/RECORD,,