psr-factory 5.0.0b4__py3-none-win_amd64.whl → 5.0.0b6__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.
psr/apps/apps.py CHANGED
@@ -66,14 +66,6 @@ def get_latest_version_and_path(program_name: str) -> Tuple[str, str]:
66
66
 
67
67
  def get_latest_version(program_name: str) -> "AppRunner":
68
68
  program_name_lower = program_name.lower()
69
- facade_names = {
70
- "sddp": SDDP,
71
- "optgen": OptGen,
72
- "ncp": NCP,
73
- "graph": Graph,
74
- "psrcloud": PSRCloud,
75
- "tsl": TSL,
76
- }
77
69
  version, path = get_latest_version_and_path(program_name)
78
70
  if program_name_lower == "sddp":
79
71
  return SDDP(path)
@@ -188,6 +180,7 @@ class TSL(AppRunner):
188
180
  def version(self) -> str:
189
181
  return self._version
190
182
 
183
+
191
184
  class PSRCloud(AppRunner):
192
185
  def __init__(self, psrcloud_path: str, version: str):
193
186
  super().__init__()
psr/factory/__init__.py CHANGED
@@ -2,6 +2,6 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "5.0.0b4"
5
+ __version__ = "5.0.0b6"
6
6
 
7
7
  from .api import *
psr/factory/factory.dll CHANGED
Binary file
Binary file
@@ -142,14 +142,16 @@ def create_case01(legacy: bool) -> psr.factory.Study:
142
142
  plant3 = plant2.clone()
143
143
  plant3.code = 3
144
144
  plant3.name = "Thermal 3"
145
- plant3.from_dict({
146
- "MaximumGenerationCapacity": 20.0,
147
- "InstalledCapacity": 20.0,
148
- "SpecificConsumption(1:3,1)": 12.5,
149
- "RefFuels": [fuel2, ],
150
- "RefSystem": system,
151
- })
152
- study.add(plant3)
145
+ # plant3.from_dict({
146
+ # "MaximumGenerationCapacity": 20.0,
147
+ # "InstalledCapacity": 20.0,
148
+ # "SpecificConsumptionSegment(1)": 100.0,
149
+ # "SpecificConsumptionSegment(2:3)": 0.0,
150
+ # "SpecificConsumption(1:3,1)": 12.5,
151
+ # "RefFuels": [fuel2, ],
152
+ # "RefSystem": system,
153
+ # })
154
+ # study.add(plant3)
153
155
 
154
156
  return study
155
157
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: psr-factory
3
- Version: 5.0.0b4
3
+ Version: 5.0.0b6
4
4
  Summary: PSR database management module.
5
5
  Author-email: "PSR Inc." <psrfactory@psr-inc.com>
6
6
  License-Expression: MIT
@@ -22,14 +22,28 @@ Classifier: Operating System :: POSIX :: Linux
22
22
  Requires-Python: >=3.9
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE.txt
25
- Requires-Dist: zeep
26
- Requires-Dist: filelock
27
- Requires-Dist: pefile
28
- Requires-Dist: boto3
29
- Requires-Dist: botocore
25
+ Requires-Dist: numpy
26
+ Provides-Extra: pandas
27
+ Requires-Dist: pandas; extra == "pandas"
28
+ Provides-Extra: polars
29
+ Requires-Dist: polars; extra == "polars"
30
+ Provides-Extra: cloud
31
+ Requires-Dist: zeep; extra == "cloud"
32
+ Requires-Dist: filelock; extra == "cloud"
33
+ Requires-Dist: pefile; extra == "cloud"
34
+ Requires-Dist: boto3; extra == "cloud"
35
+ Requires-Dist: botocore; extra == "cloud"
36
+ Provides-Extra: all
37
+ Requires-Dist: pandas; extra == "all"
38
+ Requires-Dist: polars; extra == "all"
39
+ Requires-Dist: zeep; extra == "all"
40
+ Requires-Dist: filelock; extra == "all"
41
+ Requires-Dist: pefile; extra == "all"
42
+ Requires-Dist: boto3; extra == "all"
43
+ Requires-Dist: botocore; extra == "all"
30
44
  Dynamic: license-file
31
45
 
32
- PSR Factory (version 5.0.0b4)
46
+ PSR Factory (version 4.0.35)
33
47
  ============================
34
48
 
35
49
  Factory is a library that helps to manage SDDP cases.
@@ -43,19 +57,24 @@ Installation
43
57
  ### System-wide installation
44
58
 
45
59
  Open the command prompt and run the following command:
60
+
46
61
  ```bash
47
- pip install psr-factory
62
+ pip install psr_factory-4.0.35-py3-none-win_amd64.whl
48
63
  ```
49
64
 
50
- Or, if the package directly from the wheel (whl) file:
65
+ Factory will be available to all Python scripts in your system after importing it:
51
66
 
52
- ```bash
53
- pip install psr_factory-5.0.0b4-py3-none-win_amd64.whl
67
+ ```python
68
+ import psr.factory
54
69
  ```
55
70
 
56
- Factory will be available to all Python scripts in your system after importing it:
71
+ ### Local/project-specific usage
72
+
73
+ Copy the folder `psr` and its contents to your project folder or a specific folder (e.g., `C:\path\to\factory`). Then, in your Python script, add the following lines:
57
74
 
58
75
  ```python
76
+ import sys
77
+ sys.path.append(r"C:\path\to\factory")
59
78
  import psr.factory
60
79
  ```
61
80
 
@@ -83,7 +102,7 @@ study.save(r"C:\temp\my\updated_study")
83
102
  Full documentation
84
103
  ------------------
85
104
 
86
- The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/factory/).
105
+ The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/manual/factory/).
87
106
 
88
107
  Releases
89
108
  --------
@@ -1,5 +1,5 @@
1
1
  psr/apps/__init__.py,sha256=frSq1WIy5vIdU21xJIGX7U3XoAZRj0pcQmFb-R00b7I,228
2
- psr/apps/apps.py,sha256=8jVxTFZ73KFk_PbY-8rZDD8HBONdCjt-jzsDJyu2P50,6921
2
+ psr/apps/apps.py,sha256=V8Ewht7P1I-3sSkV3dnbxbLjF2slxPjcmtzmVaLjiNY,6746
3
3
  psr/apps/version.py,sha256=vs459L6JsatAkUxna7BNG-vMCaXpO1Ye8c1bmkEx4U4,194
4
4
  psr/cloud/__init__.py,sha256=inZMwG7O9Fca9hg1BhqYObOYtTTJOkpuTIuXnkHJZkI,246
5
5
  psr/cloud/aws.py,sha256=ro8kBNVxpGDXgZ5haceqX-MAD-0F5KFDJJ4M6rRvwS8,9915
@@ -11,16 +11,16 @@ psr/cloud/status.py,sha256=vcI4B9S6wCt9maT5NNrVwYaEgGIvy6kkC1UVpJjYbtw,3607
11
11
  psr/cloud/tempfile.py,sha256=1IOeye0eKWnmBynK5K5FMWiTaEVhn4GbQ8_y0THEva0,3893
12
12
  psr/cloud/version.py,sha256=Wxm5oXHAe8U9QoQpN5WIlzAhFR9bGfvIITFeq8QPBLw,192
13
13
  psr/cloud/xml.py,sha256=ac2lyflOQm8khPvJn0zmI26I4sfUDY6A_OTsxzbMQEs,1896
14
- psr/factory/__init__.py,sha256=qKa77RFVnEjpqYdie5kJFmB3E6IfcIFkb8K1ZVSQATQ,218
14
+ psr/factory/__init__.py,sha256=oolMtQ0Q6rI2H8HW-cKvYa41n7Er-_u1l-icCzgGVTI,218
15
15
  psr/factory/api.py,sha256=N5153ZJmZjzLQ0AvRZnSlTu6UmHBQqbYw0UQ69sZHkE,98705
16
- psr/factory/factory.dll,sha256=cfqlk9jWmq9jNS77zKONDLEFYFqMaAdJR_6_V4wRPok,18232656
16
+ psr/factory/factory.dll,sha256=nxpF9Gy-kz88uvnZ9XuJPTMv83RY8TTjy59gZ4PuyvE,18286416
17
17
  psr/factory/factory.pmd,sha256=gZnS1mnb1iA1XtNA1JfALM9rKdFLFBbwAJHF2_PxKAk,243405
18
18
  psr/factory/factory.pmk,sha256=3xDhU0fpUz6dSn29E8GkXEmCOSadnq7cJPcNPbEyFfI,579203
19
19
  psr/factory/factorylib.py,sha256=xnhCFTo4DpU0e5oHtIWMmc-kk6ThtNAUI3cxpDXrBKE,27497
20
- psr/factory/libcurl-x64.dll,sha256=Bx50eR62eK_p8DMmNlfV_mNNfxmEn5n6v78wOCPWGv8,5317968
20
+ psr/factory/libcurl-x64.dll,sha256=02koNrrHmQQQiFrOjK33fbuNdlYgBBMyU8LJksmN0fs,5317968
21
21
  psr/factory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  psr/factory/samples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- psr/factory/samples/sddp_case01.py,sha256=jo71p9NN7dtRqMT76TEbD4S4Lut7p4ejbpu6SoSwg0Y,5034
23
+ psr/factory/samples/sddp_case01.py,sha256=u_91kfbTwZRnMuiXllEi7nmIdWw720CavaqKwufivEw,5152
24
24
  psr/factory/samples/sddp_case21.py,sha256=-9Wk2ntjIC1-PrQDXDcnWUjV0OF9Xi_IREFb2pUWSi4,8797
25
25
  psr/factory/samples/sddp_sample_case01.py,sha256=49C7w86EQT5IuguaNvt7mz7OqbVRhov5c3zb7_l12FE,4994
26
26
  psr/factory/samples/sddp_sample_case21.py,sha256=La9I6PcyEUCXDJMB0Mtn98Pl2V0RGPMEHAhGpboPvU8,8757
@@ -30,8 +30,8 @@ psr/psrfcommon/tempfile.py,sha256=5S13wa2DCLYTUdwbLm_KMBRnDRJ0WDlu8GO2BmZoNdg,39
30
30
  psr/runner/__init__.py,sha256=kI9HDX-B_LMQJUHHylFHas2rNpWfNNa0pZXoIvX_Alw,230
31
31
  psr/runner/runner.py,sha256=esfZbyxN_32p_ufZi7azZwmUKE3fTMrXyoyFkuZX3dI,26938
32
32
  psr/runner/version.py,sha256=mch2Y8anSXGMn9w72Z78PhSRhOyn55EwaoLAYhY4McE,194
33
- psr_factory-5.0.0b4.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
34
- psr_factory-5.0.0b4.dist-info/METADATA,sha256=izHzpBZGI-rL1zWcKVR7ufPGju-9-aYL0R7bO6UrfWc,2542
35
- psr_factory-5.0.0b4.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
36
- psr_factory-5.0.0b4.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
37
- psr_factory-5.0.0b4.dist-info/RECORD,,
33
+ psr_factory-5.0.0b6.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
34
+ psr_factory-5.0.0b6.dist-info/METADATA,sha256=eEFkU8iAXWUWdtZVdPMEKpIjWODH677zVF-Qj7AaXcI,3308
35
+ psr_factory-5.0.0b6.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
36
+ psr_factory-5.0.0b6.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
37
+ psr_factory-5.0.0b6.dist-info/RECORD,,