OpenGeodeWeb-Back 3.0.0rc9__py3-none-any.whl → 3.0.0rc11__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.
- {OpenGeodeWeb_Back-3.0.0rc9.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/METADATA +1 -1
- OpenGeodeWeb_Back-3.0.0rc11.dist-info/RECORD +9 -0
- opengeodeweb_back/geode_functions.py +18 -19
- OpenGeodeWeb_Back-3.0.0rc9.dist-info/RECORD +0 -9
- {OpenGeodeWeb_Back-3.0.0rc9.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/LICENSE +0 -0
- {OpenGeodeWeb_Back-3.0.0rc9.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/WHEEL +0 -0
- {OpenGeodeWeb_Back-3.0.0rc9.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.0rc11
|
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
|
@@ -0,0 +1,9 @@
|
|
1
|
+
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
opengeodeweb_back/geode_functions.py,sha256=2BenLnXZxylZno4ptzDq-0i1JqZToxc-yQTLl27tAXI,10428
|
3
|
+
opengeodeweb_back/geode_objects.py,sha256=v8f98lfco4X4iDmcyF3uH_nWT7BDtp8pu-R3uRwdnxU,19048
|
4
|
+
opengeodeweb_back/inspector_functions.py,sha256=rx3LsY6ETKl1J9kKilcFRZMZrIoBZEIOebqWrcuMJsk,15903
|
5
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/METADATA,sha256=ht6QCh-MFUpSNiPDQ6bTb6pshQCF0XzLb1SP4T9N5Fw,3155
|
7
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/RECORD,,
|
@@ -113,18 +113,26 @@ def geode_object_output_extensions(geode_object: str):
|
|
113
113
|
return geode_object_output_list_creators
|
114
114
|
|
115
115
|
|
116
|
-
def
|
117
|
-
|
116
|
+
def filter_geode_objects(key: str = None):
|
117
|
+
geode_objects_filtered_list = []
|
118
118
|
for geode_object, value in geode_objects_dict().items():
|
119
|
-
if key != None:
|
119
|
+
if key != None and key != "":
|
120
120
|
if key in value:
|
121
121
|
if type(value[key]) == bool:
|
122
|
-
|
123
|
-
extensions_list += geode_object_input_extensions(geode_object)
|
122
|
+
geode_objects_filtered_list.append(geode_object)
|
124
123
|
else:
|
125
|
-
|
124
|
+
geode_objects_filtered_list.append(geode_object)
|
126
125
|
else:
|
127
|
-
|
126
|
+
geode_objects_filtered_list.append(geode_object)
|
127
|
+
geode_objects_filtered_list.sort()
|
128
|
+
return geode_objects_filtered_list
|
129
|
+
|
130
|
+
|
131
|
+
def list_input_extensions(key: str = None):
|
132
|
+
extensions_list = []
|
133
|
+
geode_objects_filtered_list = filter_geode_objects(key)
|
134
|
+
for geode_object in geode_objects_filtered_list:
|
135
|
+
extensions_list += geode_object_input_extensions(geode_object)
|
128
136
|
|
129
137
|
extensions_list = list(set(extensions_list))
|
130
138
|
extensions_list.sort()
|
@@ -141,21 +149,12 @@ def list_geode_objects(
|
|
141
149
|
):
|
142
150
|
return_dict = {}
|
143
151
|
file_extension = extension_from_filename(os.path.basename(file_absolute_path))
|
152
|
+
geode_objects_filtered_list = filter_geode_objects(key)
|
144
153
|
|
145
|
-
for geode_object
|
154
|
+
for geode_object in geode_objects_filtered_list:
|
146
155
|
if has_creator(geode_object, file_extension):
|
147
156
|
file_is_loadable = is_loadable(geode_object, file_absolute_path)
|
148
|
-
|
149
|
-
if key in value:
|
150
|
-
if type(value[key]) == bool:
|
151
|
-
if value[key] == True:
|
152
|
-
return_dict[geode_object] = {
|
153
|
-
"is_loadable": file_is_loadable
|
154
|
-
}
|
155
|
-
else:
|
156
|
-
return_dict[geode_object] = {"is_loadable": file_is_loadable}
|
157
|
-
else:
|
158
|
-
return_dict[geode_object] = {"is_loadable": file_is_loadable}
|
157
|
+
return_dict[geode_object] = {"is_loadable": file_is_loadable}
|
159
158
|
return return_dict
|
160
159
|
|
161
160
|
|
@@ -1,9 +0,0 @@
|
|
1
|
-
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
opengeodeweb_back/geode_functions.py,sha256=itX6cGGx63hQjMEYl4g9XQ4KDwuEVFiwBw-7KBJX8Z8,10550
|
3
|
-
opengeodeweb_back/geode_objects.py,sha256=v8f98lfco4X4iDmcyF3uH_nWT7BDtp8pu-R3uRwdnxU,19048
|
4
|
-
opengeodeweb_back/inspector_functions.py,sha256=rx3LsY6ETKl1J9kKilcFRZMZrIoBZEIOebqWrcuMJsk,15903
|
5
|
-
OpenGeodeWeb_Back-3.0.0rc9.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
-
OpenGeodeWeb_Back-3.0.0rc9.dist-info/METADATA,sha256=5W5y9NmiJe5bc4fsdTJUgt6G9tq6gel1mNe_AMcJu90,3154
|
7
|
-
OpenGeodeWeb_Back-3.0.0rc9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
-
OpenGeodeWeb_Back-3.0.0rc9.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
-
OpenGeodeWeb_Back-3.0.0rc9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{OpenGeodeWeb_Back-3.0.0rc9.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/top_level.txt
RENAMED
File without changes
|