OpenGeodeWeb-Back 1.4.0rc1__tar.gz → 2.0.0__tar.gz
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.
- {OpenGeodeWeb-Back-1.4.0rc1/src/OpenGeodeWeb_Back.egg-info → OpenGeodeWeb-Back-2.0.0}/PKG-INFO +18 -4
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/pyproject.toml +1 -1
- OpenGeodeWeb-Back-2.0.0/requirements.txt +74 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0/src/OpenGeodeWeb_Back.egg-info}/PKG-INFO +18 -4
- OpenGeodeWeb-Back-2.0.0/src/OpenGeodeWeb_Back.egg-info/requires.txt +21 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/geode_functions.py +8 -5
- OpenGeodeWeb-Back-1.4.0rc1/requirements.txt +0 -36
- OpenGeodeWeb-Back-1.4.0rc1/src/OpenGeodeWeb_Back.egg-info/requires.txt +0 -7
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/LICENSE +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/README.md +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/setup.cfg +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/OpenGeodeWeb_Back.egg-info/SOURCES.txt +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/OpenGeodeWeb_Back.egg-info/dependency_links.txt +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/OpenGeodeWeb_Back.egg-info/top_level.txt +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/__init__.py +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/geode_objects.py +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/inspector_functions.py +0 -0
- {OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/tests/test_functions.py +0 -0
{OpenGeodeWeb-Back-1.4.0rc1/src/OpenGeodeWeb_Back.egg-info → OpenGeodeWeb-Back-2.0.0}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version:
|
3
|
+
Version: 2.0.0
|
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
|
@@ -11,13 +11,27 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.8
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist:
|
15
|
-
Requires-Dist:
|
16
|
-
Requires-Dist:
|
14
|
+
Requires-Dist: asgiref==3.7.2
|
15
|
+
Requires-Dist: attrs==23.1.0
|
16
|
+
Requires-Dist: blinker==1.7.0
|
17
|
+
Requires-Dist: click==8.1.7
|
18
|
+
Requires-Dist: flask[async]==3.0.0
|
19
|
+
Requires-Dist: geode-common==29.0.1
|
20
|
+
Requires-Dist: geode-viewables==2.1.3
|
21
|
+
Requires-Dist: itsdangerous==2.1.2
|
22
|
+
Requires-Dist: jinja2==3.1.2
|
23
|
+
Requires-Dist: jsonschema==4.19.2
|
24
|
+
Requires-Dist: jsonschema-specifications==2023.7.1
|
25
|
+
Requires-Dist: markupsafe==2.1.3
|
26
|
+
Requires-Dist: opengeode-core==14.9.3
|
17
27
|
Requires-Dist: opengeode-geosciences==7.2.1
|
18
28
|
Requires-Dist: opengeode-geosciencesio==4.5.1
|
19
29
|
Requires-Dist: opengeode-inspector==4.0.0
|
20
30
|
Requires-Dist: opengeode-io==6.2.1
|
31
|
+
Requires-Dist: referencing==0.30.2
|
32
|
+
Requires-Dist: rpds-py==0.12.0
|
33
|
+
Requires-Dist: typing-extensions==4.8.0
|
34
|
+
Requires-Dist: werkzeug==3.0.1
|
21
35
|
|
22
36
|
|
23
37
|
<h1 align="center">OpenGeodeWeb-Back<sup><i>by Geode-solutions</i></sup></h1>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
#
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.10
|
3
|
+
# by the following command:
|
4
|
+
#
|
5
|
+
# pip-compile
|
6
|
+
#
|
7
|
+
asgiref==3.7.2
|
8
|
+
# via flask
|
9
|
+
attrs==23.1.0
|
10
|
+
# via
|
11
|
+
# jsonschema
|
12
|
+
# referencing
|
13
|
+
blinker==1.7.0
|
14
|
+
# via flask
|
15
|
+
click==8.1.7
|
16
|
+
# via flask
|
17
|
+
flask[async]==3.0.0
|
18
|
+
# via -r requirements.in
|
19
|
+
geode-common==29.0.1
|
20
|
+
# via geode-viewables
|
21
|
+
geode-viewables==2.1.3
|
22
|
+
# via -r requirements.in
|
23
|
+
itsdangerous==2.1.2
|
24
|
+
# via flask
|
25
|
+
jinja2==3.1.2
|
26
|
+
# via flask
|
27
|
+
jsonschema==4.19.2
|
28
|
+
# via -r requirements.in
|
29
|
+
jsonschema-specifications==2023.7.1
|
30
|
+
# via jsonschema
|
31
|
+
markupsafe==2.1.3
|
32
|
+
# via
|
33
|
+
# jinja2
|
34
|
+
# werkzeug
|
35
|
+
opengeode-core==14.9.3
|
36
|
+
# via
|
37
|
+
# -r requirements.in
|
38
|
+
# geode-common
|
39
|
+
# geode-viewables
|
40
|
+
# opengeode-geosciences
|
41
|
+
# opengeode-geosciencesio
|
42
|
+
# opengeode-inspector
|
43
|
+
# opengeode-io
|
44
|
+
opengeode-geosciences==7.2.1
|
45
|
+
# via
|
46
|
+
# -r requirements.in
|
47
|
+
# geode-viewables
|
48
|
+
# opengeode-geosciencesio
|
49
|
+
# opengeode-inspector
|
50
|
+
opengeode-geosciencesio==4.5.1
|
51
|
+
# via
|
52
|
+
# -r requirements.in
|
53
|
+
# opengeode-inspector
|
54
|
+
opengeode-inspector==4.0.0
|
55
|
+
# via -r requirements.in
|
56
|
+
opengeode-io==6.2.1
|
57
|
+
# via
|
58
|
+
# -r requirements.in
|
59
|
+
# geode-viewables
|
60
|
+
# opengeode-inspector
|
61
|
+
referencing==0.30.2
|
62
|
+
# via
|
63
|
+
# jsonschema
|
64
|
+
# jsonschema-specifications
|
65
|
+
rpds-py==0.12.0
|
66
|
+
# via
|
67
|
+
# jsonschema
|
68
|
+
# referencing
|
69
|
+
typing-extensions==4.8.0
|
70
|
+
# via asgiref
|
71
|
+
werkzeug==3.0.1
|
72
|
+
# via
|
73
|
+
# -r requirements.in
|
74
|
+
# flask
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0/src/OpenGeodeWeb_Back.egg-info}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version:
|
3
|
+
Version: 2.0.0
|
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
|
@@ -11,13 +11,27 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.8
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist:
|
15
|
-
Requires-Dist:
|
16
|
-
Requires-Dist:
|
14
|
+
Requires-Dist: asgiref==3.7.2
|
15
|
+
Requires-Dist: attrs==23.1.0
|
16
|
+
Requires-Dist: blinker==1.7.0
|
17
|
+
Requires-Dist: click==8.1.7
|
18
|
+
Requires-Dist: flask[async]==3.0.0
|
19
|
+
Requires-Dist: geode-common==29.0.1
|
20
|
+
Requires-Dist: geode-viewables==2.1.3
|
21
|
+
Requires-Dist: itsdangerous==2.1.2
|
22
|
+
Requires-Dist: jinja2==3.1.2
|
23
|
+
Requires-Dist: jsonschema==4.19.2
|
24
|
+
Requires-Dist: jsonschema-specifications==2023.7.1
|
25
|
+
Requires-Dist: markupsafe==2.1.3
|
26
|
+
Requires-Dist: opengeode-core==14.9.3
|
17
27
|
Requires-Dist: opengeode-geosciences==7.2.1
|
18
28
|
Requires-Dist: opengeode-geosciencesio==4.5.1
|
19
29
|
Requires-Dist: opengeode-inspector==4.0.0
|
20
30
|
Requires-Dist: opengeode-io==6.2.1
|
31
|
+
Requires-Dist: referencing==0.30.2
|
32
|
+
Requires-Dist: rpds-py==0.12.0
|
33
|
+
Requires-Dist: typing-extensions==4.8.0
|
34
|
+
Requires-Dist: werkzeug==3.0.1
|
21
35
|
|
22
36
|
|
23
37
|
<h1 align="center">OpenGeodeWeb-Back<sup><i>by Geode-solutions</i></sup></h1>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
asgiref==3.7.2
|
2
|
+
attrs==23.1.0
|
3
|
+
blinker==1.7.0
|
4
|
+
click==8.1.7
|
5
|
+
flask[async]==3.0.0
|
6
|
+
geode-common==29.0.1
|
7
|
+
geode-viewables==2.1.3
|
8
|
+
itsdangerous==2.1.2
|
9
|
+
jinja2==3.1.2
|
10
|
+
jsonschema==4.19.2
|
11
|
+
jsonschema-specifications==2023.7.1
|
12
|
+
markupsafe==2.1.3
|
13
|
+
opengeode-core==14.9.3
|
14
|
+
opengeode-geosciences==7.2.1
|
15
|
+
opengeode-geosciencesio==4.5.1
|
16
|
+
opengeode-inspector==4.0.0
|
17
|
+
opengeode-io==6.2.1
|
18
|
+
referencing==0.30.2
|
19
|
+
rpds-py==0.12.0
|
20
|
+
typing-extensions==4.8.0
|
21
|
+
werkzeug==3.0.1
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/geode_functions.py
RENAMED
@@ -11,6 +11,8 @@ import opengeode_geosciences as og_gs
|
|
11
11
|
import opengeode as og
|
12
12
|
import pkg_resources
|
13
13
|
import werkzeug
|
14
|
+
from jsonschema import validate
|
15
|
+
from jsonschema.exceptions import ValidationError
|
14
16
|
|
15
17
|
# Local application imports
|
16
18
|
from .geode_objects import geode_objects_dict
|
@@ -234,15 +236,16 @@ def extension_from_filename(filename):
|
|
234
236
|
return os.path.splitext(filename)[1][1:]
|
235
237
|
|
236
238
|
|
237
|
-
def validate_request(request,
|
239
|
+
def validate_request(request, schema):
|
238
240
|
json_data = request.get_json(force=True, silent=True)
|
239
241
|
|
240
242
|
if json_data is None:
|
241
|
-
|
243
|
+
json_data = {}
|
242
244
|
|
243
|
-
|
244
|
-
|
245
|
-
|
245
|
+
try:
|
246
|
+
validate(instance=json_data, schema=schema)
|
247
|
+
except ValidationError as e:
|
248
|
+
flask.abort(400, f"Validation error: {e.message}")
|
246
249
|
|
247
250
|
|
248
251
|
def geographic_coordinate_systems(geode_object: str):
|
@@ -1,36 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# This file is autogenerated by pip-compile with Python 3.9
|
3
|
-
# by the following command:
|
4
|
-
#
|
5
|
-
# pip-compile --resolver=backtracking requirements.in
|
6
|
-
#
|
7
|
-
geode-common==29.0.0
|
8
|
-
# via geode-viewables
|
9
|
-
geode-viewables==2.1.2
|
10
|
-
# via -r requirements.in
|
11
|
-
opengeode-core==14.9.1
|
12
|
-
# via
|
13
|
-
# -r requirements.in
|
14
|
-
# geode-common
|
15
|
-
# geode-viewables
|
16
|
-
# opengeode-geosciences
|
17
|
-
# opengeode-geosciencesio
|
18
|
-
# opengeode-inspector
|
19
|
-
# opengeode-io
|
20
|
-
opengeode-geosciences==7.2.1
|
21
|
-
# via
|
22
|
-
# -r requirements.in
|
23
|
-
# geode-viewables
|
24
|
-
# opengeode-geosciencesio
|
25
|
-
# opengeode-inspector
|
26
|
-
opengeode-geosciencesio==4.5.1
|
27
|
-
# via
|
28
|
-
# -r requirements.in
|
29
|
-
# opengeode-inspector
|
30
|
-
opengeode-inspector==4.0.0
|
31
|
-
# via -r requirements.in
|
32
|
-
opengeode-io==6.2.1
|
33
|
-
# via
|
34
|
-
# -r requirements.in
|
35
|
-
# geode-viewables
|
36
|
-
# opengeode-inspector
|
File without changes
|
File without changes
|
File without changes
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/OpenGeodeWeb_Back.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/OpenGeodeWeb_Back.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/geode_objects.py
RENAMED
File without changes
|
{OpenGeodeWeb-Back-1.4.0rc1 → OpenGeodeWeb-Back-2.0.0}/src/opengeodeweb_back/inspector_functions.py
RENAMED
File without changes
|
File without changes
|