geobox 2.0.0__py3-none-any.whl → 2.0.1__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.
- geobox/aio/api.py +2 -2
- geobox/aio/query.py +0 -9
- geobox/aio/usage.py +1 -1
- geobox/aio/workflow.py +1 -1
- geobox/api.py +2 -4
- geobox/query.py +1 -10
- geobox/view.py +2 -2
- {geobox-2.0.0.dist-info → geobox-2.0.1.dist-info}/METADATA +1 -1
- {geobox-2.0.0.dist-info → geobox-2.0.1.dist-info}/RECORD +12 -12
- {geobox-2.0.0.dist-info → geobox-2.0.1.dist-info}/WHEEL +0 -0
- {geobox-2.0.0.dist-info → geobox-2.0.1.dist-info}/licenses/LICENSE +0 -0
- {geobox-2.0.0.dist-info → geobox-2.0.1.dist-info}/top_level.txt +0 -0
geobox/aio/api.py
CHANGED
|
@@ -762,7 +762,7 @@ class AsyncGeoboxClient(SyncGeoboxClient):
|
|
|
762
762
|
return await VectorLayerView.get_views_by_ids(self, ids, user_id, include_settings)
|
|
763
763
|
|
|
764
764
|
|
|
765
|
-
async def get_view(self, uuid: str) -> 'VectorLayerView':
|
|
765
|
+
async def get_view(self, uuid: str, user_id: int = None) -> 'VectorLayerView':
|
|
766
766
|
"""
|
|
767
767
|
[async] Get a specific vector layer view by its UUID.
|
|
768
768
|
|
|
@@ -778,7 +778,7 @@ class AsyncGeoboxClient(SyncGeoboxClient):
|
|
|
778
778
|
>>> async with AsyncGeoboxClient() as client:
|
|
779
779
|
>>> view = await client.get_view(uuid="12345678-1234-5678-1234-567812345678")
|
|
780
780
|
"""
|
|
781
|
-
return await VectorLayerView.get_view(self, uuid)
|
|
781
|
+
return await VectorLayerView.get_view(self, uuid, user_id)
|
|
782
782
|
|
|
783
783
|
|
|
784
784
|
async def get_view_by_name(self, name: str, user_id: int = None) -> Union['VectorLayerView', None]:
|
geobox/aio/query.py
CHANGED
|
@@ -349,8 +349,6 @@ class Query(AsyncBase):
|
|
|
349
349
|
>>> query.add_param(name='param_name', value='param_value', type=QueryParamType.LAYER)
|
|
350
350
|
>>> await query.save()
|
|
351
351
|
"""
|
|
352
|
-
self._check_access()
|
|
353
|
-
|
|
354
352
|
self.params.append({
|
|
355
353
|
'name': name,
|
|
356
354
|
'value': value,
|
|
@@ -384,8 +382,6 @@ class Query(AsyncBase):
|
|
|
384
382
|
>>> query.remove_param(name='param_name')
|
|
385
383
|
>>> await quary.save()
|
|
386
384
|
"""
|
|
387
|
-
self._check_access()
|
|
388
|
-
|
|
389
385
|
for i, param in enumerate(self.params):
|
|
390
386
|
if param.get('name') == name:
|
|
391
387
|
self.params.pop(i)
|
|
@@ -430,8 +426,6 @@ class Query(AsyncBase):
|
|
|
430
426
|
>>> query = await client.get_query(uuid="12345678-1234-5678-1234-567812345678")
|
|
431
427
|
>>> await query.execute(f='json')
|
|
432
428
|
"""
|
|
433
|
-
self._check_access()
|
|
434
|
-
|
|
435
429
|
if not self.sql:
|
|
436
430
|
raise ValueError('"sql" parameter is required for this action!')
|
|
437
431
|
if not self.params:
|
|
@@ -632,7 +626,6 @@ class Query(AsyncBase):
|
|
|
632
626
|
>>> query = await Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
633
627
|
>>> query.thumbnail
|
|
634
628
|
"""
|
|
635
|
-
self._check_access()
|
|
636
629
|
return super().thumbnail()
|
|
637
630
|
|
|
638
631
|
|
|
@@ -657,8 +650,6 @@ class Query(AsyncBase):
|
|
|
657
650
|
>>> query = await Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
658
651
|
>>> await query.save_as_layer(layer_name='test')
|
|
659
652
|
"""
|
|
660
|
-
self._check_access()
|
|
661
|
-
|
|
662
653
|
params = [{
|
|
663
654
|
"name": item.get('name'),
|
|
664
655
|
"type": item.get('type'),
|
geobox/aio/usage.py
CHANGED
|
@@ -168,7 +168,7 @@ class Usage(AsyncBase):
|
|
|
168
168
|
user_id (int, optional): the id of the user. leave blank to get the current user report.
|
|
169
169
|
|
|
170
170
|
Returns:
|
|
171
|
-
Dict: the usage
|
|
171
|
+
Dict: the usage summary of the users
|
|
172
172
|
|
|
173
173
|
Returns:
|
|
174
174
|
>>> from geobox.aio import AsyncGeoboxClient
|
geobox/aio/workflow.py
CHANGED
|
@@ -92,7 +92,7 @@ class Workflow(AsyncBase):
|
|
|
92
92
|
description (str): The description of the workflow.
|
|
93
93
|
settings (Dict): The settings of the workflow.
|
|
94
94
|
thumbnail (str): The thumbnail of the workflow.
|
|
95
|
-
user_id (int): Specific user. privileges
|
|
95
|
+
user_id (int): Specific user. privileges required.
|
|
96
96
|
|
|
97
97
|
Returns:
|
|
98
98
|
Workflow: The newly created workflow instance.
|
geobox/api.py
CHANGED
|
@@ -134,7 +134,6 @@ class _RequestSession(requests.Session):
|
|
|
134
134
|
kwargs['headers'] = request_headers
|
|
135
135
|
|
|
136
136
|
try:
|
|
137
|
-
print(kwargs['headers'])
|
|
138
137
|
response = super().request(method, url, **kwargs)
|
|
139
138
|
finally:
|
|
140
139
|
if original_content_type:
|
|
@@ -327,7 +326,6 @@ class GeoboxClient:
|
|
|
327
326
|
|
|
328
327
|
try:
|
|
329
328
|
if files:
|
|
330
|
-
print(files)
|
|
331
329
|
response = self.session.request(method, url, data=payload, files=files)
|
|
332
330
|
elif is_json:
|
|
333
331
|
response = self.session.request(method, url, json=payload)
|
|
@@ -746,7 +744,7 @@ class GeoboxClient:
|
|
|
746
744
|
return VectorLayerView.get_views_by_ids(self, ids, user_id, include_settings)
|
|
747
745
|
|
|
748
746
|
|
|
749
|
-
def get_view(self, uuid: str) -> 'VectorLayerView':
|
|
747
|
+
def get_view(self, uuid: str, user_id: int = None) -> 'VectorLayerView':
|
|
750
748
|
"""
|
|
751
749
|
Get a specific vector layer view by its UUID.
|
|
752
750
|
|
|
@@ -762,7 +760,7 @@ class GeoboxClient:
|
|
|
762
760
|
>>> client = GeoboxClient()
|
|
763
761
|
>>> view = client.get_view(uuid="12345678-1234-5678-1234-567812345678")
|
|
764
762
|
"""
|
|
765
|
-
return VectorLayerView.get_view(self, uuid)
|
|
763
|
+
return VectorLayerView.get_view(self, uuid, user_id)
|
|
766
764
|
|
|
767
765
|
|
|
768
766
|
def get_view_by_name(self, name: str, user_id: int = None) -> Union['VectorLayerView', None]:
|
geobox/query.py
CHANGED
|
@@ -348,8 +348,6 @@ class Query(Base):
|
|
|
348
348
|
>>> query.add_param(name='param_name', value='param_value', type=QueryParamType.LAYER)
|
|
349
349
|
>>> query.save()
|
|
350
350
|
"""
|
|
351
|
-
self._check_access()
|
|
352
|
-
|
|
353
351
|
self.params.append({
|
|
354
352
|
'name': name,
|
|
355
353
|
'value': value,
|
|
@@ -383,8 +381,6 @@ class Query(Base):
|
|
|
383
381
|
>>> query.remove_param(name='param_name')
|
|
384
382
|
>>> query.save()
|
|
385
383
|
"""
|
|
386
|
-
self._check_access()
|
|
387
|
-
|
|
388
384
|
for i, param in enumerate(self.params):
|
|
389
385
|
if param.get('name') == name:
|
|
390
386
|
self.params.pop(i)
|
|
@@ -428,9 +424,7 @@ class Query(Base):
|
|
|
428
424
|
or
|
|
429
425
|
>>> query = client.get_query(uuid="12345678-1234-5678-1234-567812345678")
|
|
430
426
|
>>> query.execute(f='json')
|
|
431
|
-
"""
|
|
432
|
-
self._check_access()
|
|
433
|
-
|
|
427
|
+
"""
|
|
434
428
|
if not self.sql:
|
|
435
429
|
raise ValueError('"sql" parameter is required for this action!')
|
|
436
430
|
if not self.params:
|
|
@@ -631,7 +625,6 @@ class Query(Base):
|
|
|
631
625
|
>>> query = Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
632
626
|
>>> query.thumbnail
|
|
633
627
|
"""
|
|
634
|
-
self._check_access()
|
|
635
628
|
return super().thumbnail()
|
|
636
629
|
|
|
637
630
|
|
|
@@ -656,8 +649,6 @@ class Query(Base):
|
|
|
656
649
|
>>> query = Query.get_query(client, uuid="12345678-1234-5678-1234-567812345678")
|
|
657
650
|
>>> query.save_as_layer(layer_name='test')
|
|
658
651
|
"""
|
|
659
|
-
self._check_access()
|
|
660
|
-
|
|
661
652
|
params = [{
|
|
662
653
|
"name": item.get('name'),
|
|
663
654
|
"type": item.get('type'),
|
geobox/view.py
CHANGED
|
@@ -80,8 +80,8 @@ class VectorLayerView(VectorLayer):
|
|
|
80
80
|
search_fields(str): Comma separated list of fields for searching.
|
|
81
81
|
order_by(str): comma separated list of fields for sorting results [field1 A|D, field2 A|D, …]. e.g. name A, type D. NOTE: "A" denotes ascending order and "D" denotes descending order.
|
|
82
82
|
return_count(bool): Whether to return the count of the layer views. default is False.
|
|
83
|
-
skip(int): The number of
|
|
84
|
-
limit(int): The maximum number of
|
|
83
|
+
skip(int): The number of views to skip. minimum is 0.
|
|
84
|
+
limit(int): The maximum number of views to return. minimum is 1. default is 10.
|
|
85
85
|
user_id(int): Specific user. privileges required.
|
|
86
86
|
shared(bool): Whether to return shared views. default is False.
|
|
87
87
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
geobox/__init__.py,sha256=ne0OfIpHDw_RiSuNmk1APBL66jAYXXPn_FAKHzkBrRM,1895
|
|
2
|
-
geobox/api.py,sha256=
|
|
2
|
+
geobox/api.py,sha256=MN5aJ6xqxRiDpHjAeiOyWvyph2rlxJW_1LcFoFQGpiM,105262
|
|
3
3
|
geobox/apikey.py,sha256=p1kmnpjIa41vVKrz2nApWFQltorv68MNawtIWz5Ja0k,8562
|
|
4
4
|
geobox/attachment.py,sha256=kbTmEayMf66f7gIS8uhD36SdnQrl1Nq_DRXjBdCeXDI,13026
|
|
5
5
|
geobox/base.py,sha256=-7Qsxw7OzgtFygKqaDVB__HxmUqA521XGxj9ibtTmO8,12967
|
|
@@ -16,7 +16,7 @@ geobox/map.py,sha256=CGorSxO5vuiOtmwUs3Mk4PeOg-HF5py3sRo6ahx9GF8,38074
|
|
|
16
16
|
geobox/model3d.py,sha256=e_d_E7yj-Ria3oJm9V14vfXV-g1iMHa7u7sl9Or4FlA,14938
|
|
17
17
|
geobox/mosaic.py,sha256=Ceh_kleRlZqBSDTTV27iwahG-TGsdpVzUyXcB3dbJIo,25128
|
|
18
18
|
geobox/plan.py,sha256=f7ciVE_VKM7onuzE3bGK63XxxrtfUsMv16oImyDgZ3c,13061
|
|
19
|
-
geobox/query.py,sha256=
|
|
19
|
+
geobox/query.py,sha256=ndppWvwpWdCE5tzU2rVtr6gglbDLvnPkWhvj-UMxhOY,25334
|
|
20
20
|
geobox/raster.py,sha256=YSO-Qc73PWu2jIZdoF2xfqgVlBKGgAiYUhswjbgBfrY,31098
|
|
21
21
|
geobox/route.py,sha256=cKZTTHBHM8woWbhHIpCvrRX_doJcTkGktouee0z7oG0,2723
|
|
22
22
|
geobox/scene.py,sha256=iUkMxH4YqPk3vCIQq1uAZgQGWUvtujKBylUWcmUpQkM,12356
|
|
@@ -29,10 +29,10 @@ geobox/user.py,sha256=GFQTw8EwLcyf-AMatmejtrgnSHB6Qg-ctE5YrzYIMEQ,17509
|
|
|
29
29
|
geobox/utils.py,sha256=JmlRqDVIo0vBikzH1XakRrCrEIfLA7_eTJnBWBvGhJI,2243
|
|
30
30
|
geobox/vectorlayer.py,sha256=_i1RdIw_P9BglnsERDLRxDRz6RU3tP7kVjFnRGepfyk,58622
|
|
31
31
|
geobox/version.py,sha256=6IO8AHVTbS4z-cwaqqPt0o3ggwmskimKUoUoeFzx5UE,10560
|
|
32
|
-
geobox/view.py,sha256=
|
|
32
|
+
geobox/view.py,sha256=saYWWs3tY4ZScy2m5GrIqAQ_lwQ3GqCkHyOfHAGyQCo,42321
|
|
33
33
|
geobox/workflow.py,sha256=Gi4AJlsvo_SFY3Ptgp_3sg_f37eIZNL2whn2yMW8Dkg,12666
|
|
34
34
|
geobox/aio/__init__.py,sha256=EO8VP0d5JPPZH1o1CBdwSMkPZOpyGPK0v9UbIvf6g7w,1906
|
|
35
|
-
geobox/aio/api.py,sha256=
|
|
35
|
+
geobox/aio/api.py,sha256=AJ7thGyyxWjIpd7RXIBPlN2-X_NxX8Uga2b_9aC3nzw,112460
|
|
36
36
|
geobox/aio/apikey.py,sha256=J_4XqTJ3PZUxsOqR1F-WIbpWzIihX32Y2sjPdSEUboY,9232
|
|
37
37
|
geobox/aio/attachment.py,sha256=EXBdtlb5aKlnm5GHWDfX67v0mFON5gDBtF13rknETYM,13644
|
|
38
38
|
geobox/aio/base.py,sha256=-B56CC7uMbb84DzT1YzytpOwalFRZ8mAtaVajcE4cNI,9189
|
|
@@ -47,7 +47,7 @@ geobox/aio/map.py,sha256=cOSCSVF3ERWXkMnneGLUryNZsXiScerLzmDw7K81uNE,40441
|
|
|
47
47
|
geobox/aio/model3d.py,sha256=Gg1fbfNILMeLjBwS6vxcPx-AJWdriIGKtkJ6b06GxsE,15959
|
|
48
48
|
geobox/aio/mosaic.py,sha256=wqXzrK9C-rZeMVamurqZj5Og6rSruvXBssnYfpWmt-g,27029
|
|
49
49
|
geobox/aio/plan.py,sha256=pUBfmd-AfzAn7ejv3x2mp3cYr5mM9nMMdO-YDh1JDVY,13690
|
|
50
|
-
geobox/aio/query.py,sha256=
|
|
50
|
+
geobox/aio/query.py,sha256=oypo7QKPFUgGoZc5gNzy_s1JxaSGSO7xfmUMdEuL_vk,26838
|
|
51
51
|
geobox/aio/raster.py,sha256=dPCfoD-OP5o4lgX87edYDmOgl4R-APyaNcbU6H5Y13A,33084
|
|
52
52
|
geobox/aio/route.py,sha256=YCTcAfaSFE429fpL4eIb2VrBEdBo6SmolPomVM1F66A,2854
|
|
53
53
|
geobox/aio/scene.py,sha256=cxQdFkFD-Z-ZWJyhrW_W53DyUVILmEQgJoFaG3KU_FI,13130
|
|
@@ -55,14 +55,14 @@ geobox/aio/settings.py,sha256=q1B2iZf0ekl21cByP5P9Z0ivWCDxw8UNi16NOXm76qA,7042
|
|
|
55
55
|
geobox/aio/task.py,sha256=6TEwrBqpT3YWRLo9_c0U9WFs1SHsX3h5Xe0m7XbjHR4,15329
|
|
56
56
|
geobox/aio/tile3d.py,sha256=QWYdmMQSlWqztflLTqFDqQaynkgRLoVZPF4NlwOMqDg,12935
|
|
57
57
|
geobox/aio/tileset.py,sha256=LUsCtafwFCYqG41vNNlbe3GyWXjJ1_UYV-4o7-w-Xk8,27379
|
|
58
|
-
geobox/aio/usage.py,sha256=
|
|
58
|
+
geobox/aio/usage.py,sha256=bcfeNyKk1vm67K1aRT2XMnHazG3Ue93adCv3QY-Riok,9776
|
|
59
59
|
geobox/aio/user.py,sha256=k3JCPQpwiIzJBP6xvKsPkueElW6e1i9a-odNAOIZB9U,18622
|
|
60
60
|
geobox/aio/vectorlayer.py,sha256=1635i0Vc4mvcYmgTx53sanpZJYLe5Ho4YsO2pEPH23A,62087
|
|
61
61
|
geobox/aio/version.py,sha256=HAKB9jHGZ0-EirNg9aNwYYPVFT3YOYQ0JNCxP7Nvk9g,11201
|
|
62
62
|
geobox/aio/view.py,sha256=peTf__JNMqdiTb6VQeuhj_RqljzcskbwwDaHhQ3Cf9w,45353
|
|
63
|
-
geobox/aio/workflow.py,sha256=
|
|
64
|
-
geobox-2.0.
|
|
65
|
-
geobox-2.0.
|
|
66
|
-
geobox-2.0.
|
|
67
|
-
geobox-2.0.
|
|
68
|
-
geobox-2.0.
|
|
63
|
+
geobox/aio/workflow.py,sha256=PVw4S8P9bvuKtFwcwYQIoVAeBAsO5bxiPb-nGj56ifU,13411
|
|
64
|
+
geobox-2.0.1.dist-info/licenses/LICENSE,sha256=AvFB7W94sJYKLDhBxLRshL3upexCOG8HQY_1JibB96w,1063
|
|
65
|
+
geobox-2.0.1.dist-info/METADATA,sha256=sMj5xfV2qxR_uMwZqrpZf-Bf753GGSlIdwyzJ8ouhRY,2760
|
|
66
|
+
geobox-2.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
67
|
+
geobox-2.0.1.dist-info/top_level.txt,sha256=ppXH8Bu2mlB-pLQ6lsoWEm2Gr6wZx1uzkhetsYA5ins,7
|
|
68
|
+
geobox-2.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|