py-pilecore 0.4.2__py3-none-any.whl → 0.5.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-pilecore
3
- Version: 0.4.2
3
+ Version: 0.5.1
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,>=0.5
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=qHUIQ-gDL6kMjSnoprXjr-A8s8rwQzYqD2YFXvLDtHs,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=dCV2VTRuReCt8J1MAfjqgboq2nNJ7r2OPPJ9DqTp4Io,30943
26
+ pypilecore/results/post_processing.py,sha256=UWXcdff5dhPFDwzKbVIayEIp3HX6pxW8oQR3Z7AHPn0,22262
27
+ pypilecore/results/single_cpt_results.py,sha256=37zzsAO60JQX44cbqHoZgkdGdGIC_HvxM9em-oldo7o,17459
28
+ pypilecore/results/soil_properties.py,sha256=UfPdB3L1fCjp7iDr7b0iUs_RDBi8WhSPngF8rtfxqdo,20744
29
+ py_pilecore-0.5.1.dist-info/LICENSE,sha256=3OCAZXffN0Bettjeya8uF_ZYegyvvCfH1WUt6CrHb_0,1061
30
+ py_pilecore-0.5.1.dist-info/METADATA,sha256=OfOdXssrUV1zAUbyIVrqUhTY8O3wl9G9zaPDZPB8Z6o,5832
31
+ py_pilecore-0.5.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
32
+ py_pilecore-0.5.1.dist-info/top_level.txt,sha256=7BKIWZuSkbQtJ0ho5P1JvcaEbHzqADCcBuOduZmIaiI,11
33
+ py_pilecore-0.5.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
pypilecore/__init__.py CHANGED
@@ -1,5 +1,7 @@
1
1
  from pypilecore._version import __version__
2
+ from pypilecore.common.piles.main import create_basic_pile
2
3
 
3
4
  __all__ = [
4
5
  "__version__",
6
+ "create_basic_pile",
5
7
  ]
pypilecore/_version.py CHANGED
@@ -4,4 +4,4 @@ try:
4
4
  __version__ = version("py-pilecore")
5
5
  # during CI
6
6
  except PackageNotFoundError:
7
- __version__ = "0.4.2"
7
+ __version__ = "0.5.1"
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", "/get-task-status", schema=ticket.json(), return_response=True
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("PileCore", "/get-task-result", schema=ticket.json())
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("PileCore", "/get-task-result", schema=ticket.json())
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("PileCore", "/get-task-result", schema=ticket.json())
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("PileCore", "/get-task-result", schema=ticket.json())
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("PileCore", "/get-task-result", schema=ticket.json())
235
+ return client.call_endpoint(
236
+ "PileCore", "/get-task-result", version="v3", schema=ticket.json()
237
+ )
File without changes
@@ -0,0 +1,6 @@
1
+ from .main import PileProperties, create_basic_pile
2
+
3
+ __all__ = [
4
+ "PileProperties",
5
+ "create_basic_pile",
6
+ ]
@@ -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
+ ]