cppmodel 0.9.0__py3-none-win_amd64.whl → 0.9.1__py3-none-win_amd64.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.
cppmodel/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
  from ._native import API_VERSION, lib as _lib, library_path
3
3
  from ._simulation import CppModelError, Inputs, Outputs, Parameters, Simulation, Status
4
4
 
5
- __version__ = "0.9.0"
5
+ __version__ = "0.9.1"
6
6
 
7
7
 
8
8
  def library_version():
cppmodel/_simulation.py CHANGED
@@ -318,7 +318,8 @@ class Simulation:
318
318
 
319
319
  @property
320
320
  def offline(self):
321
- """When true, run() doesn't reach the workspace: nothing is fetched or submitted."""
321
+ """When true, run() doesn't reach the workspace: nothing is fetched or submitted, and run()
322
+ then raises, because a run that skips the workspace verifies nothing."""
322
323
  return self._offline
323
324
 
324
325
  @offline.setter
cppmodel/lib/cppmodel.dll CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cppmodel
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Write CppModel simulations in Python
5
5
  Project-URL: Homepage, https://cppmodel.com
6
6
  Author-email: Control Edge AB <support@cedge.se>
@@ -101,13 +101,11 @@ dicts and `None`. All three support `in`, `len()`, iteration and `keys()`.
101
101
 
102
102
  ## Workspace access
103
103
 
104
- A run needs to sign in to your workspace:
104
+ Every run reads its inputs from and records its execution in your workspace, so it needs to sign
105
+ in. For scripts and CI, set `CPPMODEL_USERNAME` and `CPPMODEL_PASSWORD`.
105
106
 
106
- - **Scripts, CI:** set `CPPMODEL_USERNAME` and `CPPMODEL_PASSWORD`.
107
- - **Without the workspace:** create the simulation with `offline=True`. Nothing is fetched or
108
- submitted.
109
-
110
- Without credentials, the first run prints a sign-in link and waits until you've signed in. The link
107
+ Without credentials, the first run prints a sign-in link and waits 60 seconds for you to sign in
108
+ (`CPPMODEL_LOGIN_TIMEOUT` changes that, in seconds); without a sign-in, `run()` raises. The link
111
109
  goes to the process's standard output, which Jupyter doesn't show, so use credentials in notebooks.
112
110
 
113
111
  ## Fingerprint
@@ -0,0 +1,14 @@
1
+ cppmodel/__init__.py,sha256=sdzkbBkf5mgD6GceS9LLGSreInvjFZq1BV5MzV4di9E,594
2
+ cppmodel/_native.py,sha256=qUAZuxYVprNMVT0YEekZ7poJlMZkNgP2gyF42Lu09sg,4512
3
+ cppmodel/_simulation.py,sha256=Ob2qiAES9vnSNNuX8iBB2YyDRTMlQGHCRIgb1yQSjEI,14590
4
+ cppmodel/lib/cppmodel.dll,sha256=a0nzze_BmiSPH1Mn-YR2-q_P7V-ejFK4hCEz5-_VfIk,5132288
5
+ cppmodel-0.9.1.dist-info/METADATA,sha256=gO-xXq34zbg0ykZzfg_TqSjNIJWu6PnKWCNdvATnNlQ,5259
6
+ cppmodel-0.9.1.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
7
+ cppmodel-0.9.1.dist-info/licenses/LICENSE,sha256=m9J9CSAmn7L5LSEbmwtNhVbRCJin6u75y91XhYRNlgc,382
8
+ cppmodel-0.9.1.dist-info/licenses/licenses/IXWebSocket-LICENSE.txt,sha256=UXG83c7ZNKO_V4s5wzDDm-NnYgvQgBHdK1K4_KGJluk,1535
9
+ cppmodel-0.9.1.dist-info/licenses/licenses/cpp-httplib-LICENSE.txt,sha256=u1Rurlkk2O6ELg5Wfm1TPFgkvevM9gX5mls0KQNOZpc,1097
10
+ cppmodel-0.9.1.dist-info/licenses/licenses/jwt-cpp-LICENSE.txt,sha256=3ImDIAl-oGB03QcNCSSBVdOFbSNlZsPpTf-rQZX8_tg,1096
11
+ cppmodel-0.9.1.dist-info/licenses/licenses/nlohmann-json-LICENSE.txt,sha256=uXFSgrLx2xNZqRm7OlQt1DYv2eOK5y1CE2frEavmLuw,1097
12
+ cppmodel-0.9.1.dist-info/licenses/licenses/openssl-LICENSE.txt,sha256=_Ce2ibwJLiJOv_Sjt5qH-YTENsmZgRZL4YwgvG77QWM,627
13
+ cppmodel-0.9.1.dist-info/licenses/licenses/picojson-LICENSE.txt,sha256=0xRrtuowFzr_-Xnez32EsLDlSvO83J_wVUI7C6h8ebE,1361
14
+ cppmodel-0.9.1.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- cppmodel/__init__.py,sha256=ROu85RGFEeHsH8hSfT4qVk0Aud3EQoqF7hSI0tgZozw,594
2
- cppmodel/_native.py,sha256=qUAZuxYVprNMVT0YEekZ7poJlMZkNgP2gyF42Lu09sg,4512
3
- cppmodel/_simulation.py,sha256=2iogZUPmZO367SNlF7Wvxf253GYVTnHVPNe13UXhaPI,14502
4
- cppmodel/lib/cppmodel.dll,sha256=G3phIrIgcmFioJJovqxBLZvkQgXRiCm4F6M1s08bpR0,6470656
5
- cppmodel-0.9.0.dist-info/METADATA,sha256=KF5E1BCwBiiWXhBdrI-gdiU02mhUDYgqiHBs83W4TWQ,5213
6
- cppmodel-0.9.0.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
7
- cppmodel-0.9.0.dist-info/licenses/LICENSE,sha256=m9J9CSAmn7L5LSEbmwtNhVbRCJin6u75y91XhYRNlgc,382
8
- cppmodel-0.9.0.dist-info/licenses/licenses/IXWebSocket-LICENSE.txt,sha256=UXG83c7ZNKO_V4s5wzDDm-NnYgvQgBHdK1K4_KGJluk,1535
9
- cppmodel-0.9.0.dist-info/licenses/licenses/cpp-httplib-LICENSE.txt,sha256=u1Rurlkk2O6ELg5Wfm1TPFgkvevM9gX5mls0KQNOZpc,1097
10
- cppmodel-0.9.0.dist-info/licenses/licenses/jwt-cpp-LICENSE.txt,sha256=3ImDIAl-oGB03QcNCSSBVdOFbSNlZsPpTf-rQZX8_tg,1096
11
- cppmodel-0.9.0.dist-info/licenses/licenses/nlohmann-json-LICENSE.txt,sha256=uXFSgrLx2xNZqRm7OlQt1DYv2eOK5y1CE2frEavmLuw,1097
12
- cppmodel-0.9.0.dist-info/licenses/licenses/openssl-LICENSE.txt,sha256=_Ce2ibwJLiJOv_Sjt5qH-YTENsmZgRZL4YwgvG77QWM,627
13
- cppmodel-0.9.0.dist-info/licenses/licenses/picojson-LICENSE.txt,sha256=0xRrtuowFzr_-Xnez32EsLDlSvO83J_wVUI7C6h8ebE,1361
14
- cppmodel-0.9.0.dist-info/RECORD,,