py-pilecore 0.4.1__py3-none-any.whl → 0.5.0__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 py-pilecore might be problematic. Click here for more details.
- {py_pilecore-0.4.1.dist-info → py_pilecore-0.5.0.dist-info}/METADATA +2 -2
- py_pilecore-0.5.0.dist-info/RECORD +33 -0
- {py_pilecore-0.4.1.dist-info → py_pilecore-0.5.0.dist-info}/WHEEL +1 -1
- pypilecore/__init__.py +2 -0
- pypilecore/_version.py +1 -1
- pypilecore/api.py +26 -6
- pypilecore/common/__init__.py +0 -0
- pypilecore/common/piles/__init__.py +6 -0
- pypilecore/common/piles/geometry/__init__.py +18 -0
- pypilecore/common/piles/geometry/components/__init__.py +10 -0
- pypilecore/common/piles/geometry/components/common.py +493 -0
- pypilecore/common/piles/geometry/components/rectangle.py +521 -0
- pypilecore/common/piles/geometry/components/round.py +435 -0
- pypilecore/common/piles/geometry/main.py +335 -0
- pypilecore/common/piles/geometry/materials.py +173 -0
- pypilecore/common/piles/main.py +290 -0
- pypilecore/common/piles/type.py +196 -0
- pypilecore/input/__init__.py +0 -2
- pypilecore/input/multi_cpt.py +7 -119
- pypilecore/input/soil_properties.py +12 -1
- pypilecore/results/grouper_result.py +3 -2
- pypilecore/results/multi_cpt_results.py +171 -7
- py_pilecore-0.4.1.dist-info/RECORD +0 -24
- pypilecore/input/pile_properties.py +0 -213
- pypilecore/results/pile_properties.py +0 -891
- {py_pilecore-0.4.1.dist-info → py_pilecore-0.5.0.dist-info}/LICENSE +0 -0
- {py_pilecore-0.4.1.dist-info → py_pilecore-0.5.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: py-pilecore
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Public python SDK for the CEMS PileCore web-API.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ License-File: LICENSE
|
|
|
32
32
|
Requires-Dist: pygef <1,>0.8
|
|
33
33
|
Requires-Dist: numpy <2,>1
|
|
34
34
|
Requires-Dist: pandas <3,>2
|
|
35
|
-
Requires-Dist: cems-nuclei[client] <1
|
|
35
|
+
Requires-Dist: cems-nuclei[client] <2,>=1
|
|
36
36
|
Requires-Dist: matplotlib <4,>=3.8
|
|
37
37
|
Requires-Dist: tqdm[notebook] <5,>4
|
|
38
38
|
Requires-Dist: natsort <9,>8
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
pypilecore/__init__.py,sha256=oJvwYShj_7FyNVlUgQda4tTdYyLIi5H1asdiS_uYt9M,162
|
|
2
|
+
pypilecore/_version.py,sha256=ihglxmOxUftWzqblC7ih-DQT5e6K6Y3Em4xrgDSPEZg,175
|
|
3
|
+
pypilecore/api.py,sha256=QwwHXR6HYtrF-gCHQWLvMHZnTxf5fjTlWI2cGfYSkUc,7165
|
|
4
|
+
pypilecore/exceptions.py,sha256=-MZOfsxyHLCI0k1-wZFfVsMxc1lya5buuhLks5rxlCo,89
|
|
5
|
+
pypilecore/plot_utils.py,sha256=rK5_067-4-x7LzZgt_t6ahcGrZInxNrqHqsy0RzCnq8,954
|
|
6
|
+
pypilecore/utils.py,sha256=ib9LgJBIgWukL7zd_Zk1LP27UTMIZTRJ4RBB6ubn97o,1186
|
|
7
|
+
pypilecore/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
pypilecore/common/piles/__init__.py,sha256=xHP56HiBc1sHg2WZ9iG6CSJAgR072ZwD83lp8PSdTa4,114
|
|
9
|
+
pypilecore/common/piles/main.py,sha256=9Yy1VTD6p80Y33ycEFjafVbjgwjmdObMWetejocxI_0,10519
|
|
10
|
+
pypilecore/common/piles/type.py,sha256=rxaJZ2MAybLdoGqb1KEBh8KYpaKEwnoebEq2bjBrahk,7227
|
|
11
|
+
pypilecore/common/piles/geometry/__init__.py,sha256=dFCVazEXnPCt5cQeHkSi5wp-yHRB9gKvtlQ3V5kBuOQ,438
|
|
12
|
+
pypilecore/common/piles/geometry/main.py,sha256=ant3y1ZTGRN2off5-dwz2024Xa7pC0K7auBbmjTy9p8,11231
|
|
13
|
+
pypilecore/common/piles/geometry/materials.py,sha256=4_lWwKPhW09tv--jLLwtTfku6dDTtsVXivpjcjXljiA,5199
|
|
14
|
+
pypilecore/common/piles/geometry/components/__init__.py,sha256=KugR37RWegxasqrf93h_PencnKzR4_Mi8s0GhEGzctM,326
|
|
15
|
+
pypilecore/common/piles/geometry/components/common.py,sha256=scYoF-4aE0Wknx9GgSO-qhaIJHfwV6vdIOdtfwExW4U,15127
|
|
16
|
+
pypilecore/common/piles/geometry/components/rectangle.py,sha256=591KyIejyjNAMnKg8yThFjbrPXAVHQdf08vaiQYHZdk,18411
|
|
17
|
+
pypilecore/common/piles/geometry/components/round.py,sha256=MX2_qGmxr1dTtodblFfkNGkoDYqd6xgXHJ57xFuz_Z0,14735
|
|
18
|
+
pypilecore/input/__init__.py,sha256=Gyqsp6zqc8AYnIp17SfqbBNjDaUkRgAam8x2r0XibwM,492
|
|
19
|
+
pypilecore/input/grouper_properties.py,sha256=qOc-SNYSPdOcZZ9DsRE-sBNVOKHbUD044EWRsWDu_kc,10893
|
|
20
|
+
pypilecore/input/multi_cpt.py,sha256=V7A_MAYeJoMkGOQu1oFGJfJ3dkuBdhDSfeLvgiCLmqs,14196
|
|
21
|
+
pypilecore/input/soil_properties.py,sha256=VZHGGmns768XPLjMTVwQDpy3f0LDFG0AwbKVfm3xKWc,7993
|
|
22
|
+
pypilecore/results/__init__.py,sha256=ggTI2QzILhX_oNx1YMOih6IVCkBFg8I5-Jyn9Sw3_h0,389
|
|
23
|
+
pypilecore/results/grouper_result.py,sha256=HcjLbnD3wt28CtIACD1OSoyJRmfu5x8Qv2BdDMpvgyY,30952
|
|
24
|
+
pypilecore/results/load_settlement.py,sha256=EbfTrSvH_g96KE-x8ZjmO8D0mt5KFaQ_-AR8u4blLsU,9752
|
|
25
|
+
pypilecore/results/multi_cpt_results.py,sha256=9gVHrmwIAUe2Unc9AXA0uC1oWFktjqRHiBrl8UyUbTo,30932
|
|
26
|
+
pypilecore/results/post_processing.py,sha256=UWXcdff5dhPFDwzKbVIayEIp3HX6pxW8oQR3Z7AHPn0,22262
|
|
27
|
+
pypilecore/results/single_cpt_results.py,sha256=irNqsL_cBKUh-QEmWC216KZjkv9MAZkaiLTvDDlEt20,17448
|
|
28
|
+
pypilecore/results/soil_properties.py,sha256=Mcwz23PcaIW1xKLabMUSfIeKCTBli7ouuZPfT5dfrb4,20722
|
|
29
|
+
py_pilecore-0.5.0.dist-info/LICENSE,sha256=3OCAZXffN0Bettjeya8uF_ZYegyvvCfH1WUt6CrHb_0,1061
|
|
30
|
+
py_pilecore-0.5.0.dist-info/METADATA,sha256=ry_vC3BrPQFooH82u-Dd26KBHM3hlremSgEYrSMvLYI,5832
|
|
31
|
+
py_pilecore-0.5.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
32
|
+
py_pilecore-0.5.0.dist-info/top_level.txt,sha256=7BKIWZuSkbQtJ0ho5P1JvcaEbHzqADCcBuOduZmIaiI,11
|
|
33
|
+
py_pilecore-0.5.0.dist-info/RECORD,,
|
pypilecore/__init__.py
CHANGED
pypilecore/_version.py
CHANGED
pypilecore/api.py
CHANGED
|
@@ -32,7 +32,11 @@ def wait_until_ticket_is_ready(
|
|
|
32
32
|
if verbose:
|
|
33
33
|
logging.info("Polling ticket status")
|
|
34
34
|
status_response = client.call_endpoint(
|
|
35
|
-
"PileCore",
|
|
35
|
+
"PileCore",
|
|
36
|
+
"/get-task-status",
|
|
37
|
+
version="v3",
|
|
38
|
+
schema=ticket.json(),
|
|
39
|
+
return_response=True,
|
|
36
40
|
)
|
|
37
41
|
|
|
38
42
|
# Check if the status response is OK
|
|
@@ -53,6 +57,7 @@ def wait_until_ticket_is_ready(
|
|
|
53
57
|
result_response = client.call_endpoint(
|
|
54
58
|
"PileCore",
|
|
55
59
|
"/get-task-result",
|
|
60
|
+
version="v3",
|
|
56
61
|
schema=ticket.json(),
|
|
57
62
|
return_response=True,
|
|
58
63
|
)
|
|
@@ -85,13 +90,16 @@ def get_multi_cpt_api_result(
|
|
|
85
90
|
ticket = client.call_endpoint(
|
|
86
91
|
"PileCore",
|
|
87
92
|
"/compression/multiple-cpts/results",
|
|
93
|
+
version="v3",
|
|
88
94
|
schema=payload,
|
|
89
95
|
return_response=True,
|
|
90
96
|
)
|
|
91
97
|
|
|
92
98
|
wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
|
|
93
99
|
|
|
94
|
-
return client.call_endpoint(
|
|
100
|
+
return client.call_endpoint(
|
|
101
|
+
"PileCore", "/get-task-result", version="v3", schema=ticket.json()
|
|
102
|
+
)
|
|
95
103
|
|
|
96
104
|
|
|
97
105
|
def get_multi_cpt_api_report(
|
|
@@ -116,12 +124,15 @@ def get_multi_cpt_api_report(
|
|
|
116
124
|
ticket = client.call_endpoint(
|
|
117
125
|
"PileCore",
|
|
118
126
|
"/compression/multiple-cpts/report",
|
|
127
|
+
version="v3",
|
|
119
128
|
schema=payload,
|
|
120
129
|
return_response=True,
|
|
121
130
|
)
|
|
122
131
|
wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
|
|
123
132
|
|
|
124
|
-
return client.call_endpoint(
|
|
133
|
+
return client.call_endpoint(
|
|
134
|
+
"PileCore", "/get-task-result", version="v3", schema=ticket.json()
|
|
135
|
+
)
|
|
125
136
|
|
|
126
137
|
|
|
127
138
|
def get_groups_api_result(
|
|
@@ -146,13 +157,16 @@ def get_groups_api_result(
|
|
|
146
157
|
ticket = client.call_endpoint(
|
|
147
158
|
"PileCore",
|
|
148
159
|
"/grouper/group_cpts",
|
|
160
|
+
version="v3",
|
|
149
161
|
schema=payload,
|
|
150
162
|
return_response=True,
|
|
151
163
|
)
|
|
152
164
|
|
|
153
165
|
wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
|
|
154
166
|
|
|
155
|
-
return client.call_endpoint(
|
|
167
|
+
return client.call_endpoint(
|
|
168
|
+
"PileCore", "/get-task-result", version="v3", schema=ticket.json()
|
|
169
|
+
)
|
|
156
170
|
|
|
157
171
|
|
|
158
172
|
def get_optimize_groups_api_result(
|
|
@@ -177,13 +191,16 @@ def get_optimize_groups_api_result(
|
|
|
177
191
|
ticket = client.call_endpoint(
|
|
178
192
|
"PileCore",
|
|
179
193
|
"/grouper/optimize_groups",
|
|
194
|
+
version="v3",
|
|
180
195
|
schema=payload,
|
|
181
196
|
return_response=True,
|
|
182
197
|
)
|
|
183
198
|
|
|
184
199
|
wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
|
|
185
200
|
|
|
186
|
-
return client.call_endpoint(
|
|
201
|
+
return client.call_endpoint(
|
|
202
|
+
"PileCore", "/get-task-result", version="v3", schema=ticket.json()
|
|
203
|
+
)
|
|
187
204
|
|
|
188
205
|
|
|
189
206
|
def get_groups_api_report(
|
|
@@ -208,10 +225,13 @@ def get_groups_api_report(
|
|
|
208
225
|
ticket = client.call_endpoint(
|
|
209
226
|
"PileCore",
|
|
210
227
|
"/grouper/generate_grouper_report",
|
|
228
|
+
version="v3",
|
|
211
229
|
schema=payload,
|
|
212
230
|
return_response=True,
|
|
213
231
|
)
|
|
214
232
|
|
|
215
233
|
wait_until_ticket_is_ready(client=client, ticket=ticket, verbose=verbose)
|
|
216
234
|
|
|
217
|
-
return client.call_endpoint(
|
|
235
|
+
return client.call_endpoint(
|
|
236
|
+
"PileCore", "/get-task-result", version="v3", schema=ticket.json()
|
|
237
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from .components import (
|
|
2
|
+
PrimaryPileComponentDimension,
|
|
3
|
+
RectPileGeometryComponent,
|
|
4
|
+
RoundPileGeometryComponent,
|
|
5
|
+
_BasePileGeometryComponent,
|
|
6
|
+
)
|
|
7
|
+
from .main import PileGeometry
|
|
8
|
+
from .materials import Color, PileMaterial
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"PileGeometry",
|
|
12
|
+
"PileMaterial",
|
|
13
|
+
"Color",
|
|
14
|
+
"PrimaryPileComponentDimension",
|
|
15
|
+
"RoundPileGeometryComponent",
|
|
16
|
+
"RectPileGeometryComponent",
|
|
17
|
+
"_BasePileGeometryComponent",
|
|
18
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from .common import PrimaryPileComponentDimension, _BasePileGeometryComponent
|
|
2
|
+
from .rectangle import RectPileGeometryComponent
|
|
3
|
+
from .round import RoundPileGeometryComponent
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"_BasePileGeometryComponent",
|
|
7
|
+
"PrimaryPileComponentDimension",
|
|
8
|
+
"RectPileGeometryComponent",
|
|
9
|
+
"RoundPileGeometryComponent",
|
|
10
|
+
]
|