ellipsis 3.1.52__py3-none-any.whl → 3.1.54__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.
Potentially problematic release.
This version of ellipsis might be problematic. Click here for more details.
- ellipsis/__init__.py +1 -1
- ellipsis/compute/__init__.py +1 -1
- ellipsis/compute/root.py +22 -22
- ellipsis/path/vector/root.py +10 -0
- {ellipsis-3.1.52.dist-info → ellipsis-3.1.54.dist-info}/METADATA +1 -1
- {ellipsis-3.1.52.dist-info → ellipsis-3.1.54.dist-info}/RECORD +9 -9
- {ellipsis-3.1.52.dist-info → ellipsis-3.1.54.dist-info}/LICENSE +0 -0
- {ellipsis-3.1.52.dist-info → ellipsis-3.1.54.dist-info}/WHEEL +0 -0
- {ellipsis-3.1.52.dist-info → ellipsis-3.1.54.dist-info}/top_level.txt +0 -0
ellipsis/__init__.py
CHANGED
ellipsis/compute/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
from ellipsis.compute.root import
|
|
1
|
+
from ellipsis.compute.root import createCompute, listComputes, execute
|
ellipsis/compute/root.py
CHANGED
|
@@ -9,7 +9,7 @@ from ellipsis.account import getInfo
|
|
|
9
9
|
|
|
10
10
|
apiManager.baseUrl = 'https://acc.api.ellipsis-drive.com/v3'
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def createCompute(layers, token, nodes=None, interpreter='python3.12', requirements= [], awaitTillStarted = True):
|
|
13
13
|
layers = sanitize.validDictArray('layers', layers, True)
|
|
14
14
|
token = sanitize.validString('token', token, True)
|
|
15
15
|
nodes = sanitize.validInt('nodes', nodes, False)
|
|
@@ -27,10 +27,10 @@ def createCluster(layers, token, nodes=None, interpreter='python3.12', requireme
|
|
|
27
27
|
body = {'layers':layers, 'interpreter':interpreter, 'nodes':nodes, 'requirements':requirements}
|
|
28
28
|
r = apiManager.post('/compute', body, token)
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
computeId = r['id']
|
|
31
31
|
while awaitTillStarted:
|
|
32
|
-
res =
|
|
33
|
-
r = [x for x in res if x['id'] ==
|
|
32
|
+
res = listComputes(token=token)['result']
|
|
33
|
+
r = [x for x in res if x['id'] == computeId][0]
|
|
34
34
|
if r['status'] == 'available':
|
|
35
35
|
break
|
|
36
36
|
if r['status'] == 'errored':
|
|
@@ -38,11 +38,11 @@ def createCluster(layers, token, nodes=None, interpreter='python3.12', requireme
|
|
|
38
38
|
|
|
39
39
|
time.sleep(1)
|
|
40
40
|
|
|
41
|
-
return {'id':
|
|
41
|
+
return {'id':computeId}
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
def execute(
|
|
45
|
-
|
|
44
|
+
def execute(computeId, f, token, awaitTillCompleted=True):
|
|
45
|
+
computeId = sanitize.validUuid('computeId', computeId, True)
|
|
46
46
|
token = sanitize.validString('token', token, True)
|
|
47
47
|
|
|
48
48
|
if str(type(f)) != "<class 'function'>":
|
|
@@ -52,11 +52,11 @@ def execute(clusterId, f, token, awaitTillCompleted=True):
|
|
|
52
52
|
f_string = base64.b64encode(f_bytes)
|
|
53
53
|
|
|
54
54
|
body = { 'file':f_string}
|
|
55
|
-
apiManager.post('/compute/' +
|
|
55
|
+
apiManager.post('/compute/' + computeId + '/execute', body, token)
|
|
56
56
|
|
|
57
57
|
while awaitTillCompleted:
|
|
58
|
-
res =
|
|
59
|
-
r = [x for x in res if x['id'] ==
|
|
58
|
+
res = listComputes(token=token)['result']
|
|
59
|
+
r = [x for x in res if x['id'] == computeId][0]
|
|
60
60
|
if r['status'] == 'completed':
|
|
61
61
|
break
|
|
62
62
|
time.sleep(1)
|
|
@@ -77,17 +77,17 @@ def parseResults(r):
|
|
|
77
77
|
|
|
78
78
|
return results
|
|
79
79
|
|
|
80
|
-
def
|
|
81
|
-
|
|
80
|
+
def terminatecompute(computeId, token, awaitTillTerminated = True):
|
|
81
|
+
computeId = sanitize.validUuid('computeId', computeId, True)
|
|
82
82
|
token = sanitize.validString('token', token, True)
|
|
83
83
|
sanitize.validBool('awaitTillTerminated',awaitTillTerminated, True)
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
r = apiManager.post('/compute/' +
|
|
86
|
+
r = apiManager.post('/compute/' + computeId + '/terminate', {}, token)
|
|
87
87
|
|
|
88
88
|
while awaitTillTerminated:
|
|
89
|
-
res =
|
|
90
|
-
z = [x for x in res if x['id'] ==
|
|
89
|
+
res = listComputes(token=token)['result']
|
|
90
|
+
z = [x for x in res if x['id'] == computeId][0]
|
|
91
91
|
if z['status'] == 'stopped':
|
|
92
92
|
break
|
|
93
93
|
time.sleep(1)
|
|
@@ -98,7 +98,7 @@ def terminateAll(token, awaitTillTerminated = True ):
|
|
|
98
98
|
token = sanitize.validString('token', token, True)
|
|
99
99
|
sanitize.validBool('awaitTillTerminated',awaitTillTerminated, True)
|
|
100
100
|
|
|
101
|
-
res =
|
|
101
|
+
res = listComputes(token = token)['result']
|
|
102
102
|
|
|
103
103
|
for x in res:
|
|
104
104
|
if x['status'] != 'stopped' and x['status'] != 'errored' and x['status'] != 'stopping':
|
|
@@ -106,7 +106,7 @@ def terminateAll(token, awaitTillTerminated = True ):
|
|
|
106
106
|
apiManager.post('/compute/' + x['id'] + '/terminate', {}, token)
|
|
107
107
|
|
|
108
108
|
while awaitTillTerminated:
|
|
109
|
-
res =
|
|
109
|
+
res = listComputes(token=token)['result']
|
|
110
110
|
z = [x for x in res if x['id'] == x['id']][0]
|
|
111
111
|
if z['status'] == 'stopped':
|
|
112
112
|
break
|
|
@@ -114,14 +114,14 @@ def terminateAll(token, awaitTillTerminated = True ):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
def
|
|
118
|
-
res =
|
|
119
|
-
r = [x for x in res if x['id'] ==
|
|
117
|
+
def getComputeInfo(computeId, token):
|
|
118
|
+
res = listComputes(token=token)['result']
|
|
119
|
+
r = [x for x in res if x['id'] == computeId]
|
|
120
120
|
if len(r) ==0:
|
|
121
|
-
raise ValueError('No
|
|
121
|
+
raise ValueError('No compute found for given id')
|
|
122
122
|
return r[0]
|
|
123
123
|
|
|
124
|
-
def
|
|
124
|
+
def listComputes(token, pageStart = None, listAll = True):
|
|
125
125
|
token = sanitize.validString('token', token, True)
|
|
126
126
|
|
|
127
127
|
|
ellipsis/path/vector/root.py
CHANGED
|
@@ -31,5 +31,15 @@ def editFilter(pathId, propertyFilter, token):
|
|
|
31
31
|
r = apiManager.post('/path/' + pathId + '/vector/filter' , body, token)
|
|
32
32
|
return r
|
|
33
33
|
|
|
34
|
+
def computeAllVectorTiles(pathId, timestampId, token):
|
|
35
|
+
pathId = sanitize.validUuid('pathId', pathId, True)
|
|
36
|
+
timestampId = sanitize.validUuid('timestampId', timestampId, True)
|
|
37
|
+
token = sanitize.validString('token', token, True)
|
|
38
|
+
|
|
39
|
+
r = apiManager.post('/path/' + pathId + '/vector/timestamp/' + timestampId + '/precompute/completeVectorTile' , {}, token)
|
|
40
|
+
|
|
41
|
+
return r
|
|
42
|
+
|
|
43
|
+
|
|
34
44
|
|
|
35
45
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
ellipsis/__init__.py,sha256=
|
|
1
|
+
ellipsis/__init__.py,sha256=6jdYSEWVaaRzcsJnkLk1g8FZuPxluauqQFiVelBgSJU,238
|
|
2
2
|
ellipsis/apiManager.py,sha256=T0YYV26r02yDMFO5ePmBbM4_gfy55KleECAyM1OSrCk,5598
|
|
3
3
|
ellipsis/sanitize.py,sha256=VuTPjHAUNCGUaOzKU2ojloiEN8kPhm53fIjbk6E9IEg,10597
|
|
4
4
|
ellipsis/account/__init__.py,sha256=jTmwL9HVS27vAHPC_2a98RQJWbpSKBN4ptiXpY0qJgk,101
|
|
5
5
|
ellipsis/account/root.py,sha256=p8AehZQizaPlpGdFB5RsMduyUF4ynN0cGDz41nIxjYM,1942
|
|
6
6
|
ellipsis/account/accessToken/__init__.py,sha256=ivwhK1eC4g74PAKaeTReb1QhIpKXyvmfdqZV6wDY-EY,66
|
|
7
7
|
ellipsis/account/accessToken/root.py,sha256=TYo8wTyWyzytaqOTsuQC-Vn3y7BhYMC88EItZafpISA,1281
|
|
8
|
-
ellipsis/compute/__init__.py,sha256
|
|
9
|
-
ellipsis/compute/root.py,sha256=
|
|
8
|
+
ellipsis/compute/__init__.py,sha256=-FC0XRa4C66PSNOzMPuyqt4SNLFSThvH4GWa5CPLVz4,71
|
|
9
|
+
ellipsis/compute/root.py,sha256=uP-yHsNFDn3VSqPY2OcYZ83jRSpIJZH7nDBDGsH6lBU,4376
|
|
10
10
|
ellipsis/path/__init__.py,sha256=NzdcTpXpicdrBWLgsFP6WY7ARIBKUFnkwa5VuB1Qdpc,506
|
|
11
11
|
ellipsis/path/root.py,sha256=GqiYjAkdSchkQf1NzcSFZvBrmoQir7K2fqmZosqghFM,7953
|
|
12
12
|
ellipsis/path/bookmark/__init__.py,sha256=vNrqGcWl5MN_xVAiClP6W6NilmsV-fqYOnJukbYcNwc,56
|
|
@@ -46,7 +46,7 @@ ellipsis/path/setUpTask/root.py,sha256=ERmbcGvxyCcGSKeJDe3bdYke9Do4VK02o-aeTQ77s
|
|
|
46
46
|
ellipsis/path/usage/__init__.py,sha256=2BHmLV9soOYDhyQFH2B86bBjmWXGsfuX4KneEBDo6O4,96
|
|
47
47
|
ellipsis/path/usage/root.py,sha256=NAZCDHXHcN6kodU3EpbNwlWM3It60ewsGXt4LJ_enG0,1566
|
|
48
48
|
ellipsis/path/vector/__init__.py,sha256=hsWLBZOmDYw5Ra9TzX5hFipi4ZcXdVP1E35cHk2PQwQ,281
|
|
49
|
-
ellipsis/path/vector/root.py,sha256=
|
|
49
|
+
ellipsis/path/vector/root.py,sha256=P8zKEA6b4F9sQ7di5FHtiHrp3wnG49QVfDgq68_n7Ek,1808
|
|
50
50
|
ellipsis/path/vector/featureProperty/__init__.py,sha256=-S6G0Sq66m8HVTg4bCp33fsUzYq-2hPueg5BotSpk2Q,81
|
|
51
51
|
ellipsis/path/vector/featureProperty/root.py,sha256=eb2bw4UGO3eYGaYgjwu43pZyA4iAjQTik_4HurZaGbM,2111
|
|
52
52
|
ellipsis/path/vector/style/__init__.py,sha256=riiDnL4FDq4EFhSYAYHBSe_o5oltRTSrj4sc72F6IVQ,63
|
|
@@ -67,8 +67,8 @@ ellipsis/user/__init__.py,sha256=um_b42pc2otFiQRGqMajcEtONQpC2ei4r-EY3j7bsfQ,43
|
|
|
67
67
|
ellipsis/user/root.py,sha256=dsMK6wGBdeCmOd3YsbIv9cEcQ6tAiSGr0jmtBhQl5-0,484
|
|
68
68
|
ellipsis/util/__init__.py,sha256=_sNBUXDKJVGffRyt93xdUrJ4gON651Sp-unr7LKVCEc,756
|
|
69
69
|
ellipsis/util/root.py,sha256=Ts7DeaD_X7x-csmq5V2sa_hYrt1mCd59T7-NUQcWj3Y,23980
|
|
70
|
-
ellipsis-3.1.
|
|
71
|
-
ellipsis-3.1.
|
|
72
|
-
ellipsis-3.1.
|
|
73
|
-
ellipsis-3.1.
|
|
74
|
-
ellipsis-3.1.
|
|
70
|
+
ellipsis-3.1.54.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
|
|
71
|
+
ellipsis-3.1.54.dist-info/METADATA,sha256=3L6Wpyn_YH1AbvJyhXpv-2ZAKKWF5c4CelCATUGd-CQ,1843
|
|
72
|
+
ellipsis-3.1.54.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
73
|
+
ellipsis-3.1.54.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
|
|
74
|
+
ellipsis-3.1.54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|