psr-factory 4.1.0b2__py3-none-win_amd64.whl → 4.1.0b4__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/factory/factorylib.py CHANGED
@@ -12,10 +12,13 @@ import psr.psrfcommon
12
12
  lib = None
13
13
 
14
14
  if sys.platform == "win32":
15
+ def get_lib_path() -> str:
16
+ return os.path.join(os.path.dirname(__file__), "factory.dll")
15
17
  def load_lib():
16
- lib_path = os.path.join(os.path.dirname(__file__), "factory.dll")
17
- return ctypes.cdll.LoadLibrary(lib_path)
18
+ return ctypes.cdll.LoadLibrary(get_lib_path())
18
19
  else:
20
+ def get_lib_path() -> str:
21
+ return os.path.join(os.path.dirname(__file__), "libfactory.so")
19
22
  def load_lib():
20
23
  with psr.psrfcommon.change_cwd(os.path.dirname(__file__)):
21
24
  lib_path = "./libfactory.so"
Binary file
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: psr-factory
3
+ Version: 4.1.0b4
4
+ Summary: PSR database management module.
5
+ Author-email: "PSR Inc." <psrfactory@psr-inc.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 PSR Factory
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: documentation, https://docs.psr-inc.com/factory/
29
+ Keywords: psr,factory,sddp
30
+ Classifier: Development Status :: 4 - Beta
31
+ Classifier: Programming Language :: C
32
+ Classifier: Programming Language :: C++
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Programming Language :: Python :: 3.9
35
+ Classifier: Programming Language :: Python :: 3.10
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Programming Language :: Python :: 3.13
39
+ Classifier: Topic :: Software Development
40
+ Classifier: Topic :: Scientific/Engineering
41
+ Classifier: Operating System :: Microsoft :: Windows
42
+ Classifier: Operating System :: POSIX :: Linux
43
+ Classifier: License :: OSI Approved :: MIT License
44
+ Requires-Python: >=3.9
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE.txt
47
+ Dynamic: license-file
48
+
49
+ PSR Factory (version 4.1.0b4)
50
+ ============================
51
+
52
+ Factory is a library that helps to manage SDDP cases.
53
+ It contains functions that create, load, and save studies, and also functions that create,
54
+ access, and modify objects in a study.
55
+
56
+
57
+ Installation
58
+ ------------
59
+
60
+ ### System-wide installation
61
+
62
+ Open the command prompt and run the following command:
63
+ ```bash
64
+ pip install psr-factory
65
+ ```
66
+
67
+ Or, if the package directly from the wheel (whl) file:
68
+
69
+ ```bash
70
+ pip install psr_factory-4.1.0b4-py3-none-win_amd64.whl
71
+ ```
72
+
73
+ Factory will be available to all Python scripts in your system after importing it:
74
+
75
+ ```python
76
+ import psr.factory
77
+ ```
78
+
79
+
80
+ Usage sample
81
+ ------------
82
+
83
+ ```python
84
+ import psr.factory
85
+
86
+ study = psr.factory.load_study(r"C:\temp\my\study")
87
+ system_1 = study.find("System.*")[0]
88
+
89
+ battery = psr.factory.create("Battery")
90
+ battery.code = 1
91
+ battery.name = "Battery 1"
92
+ battery.set("InstalledCapacity", 10.0)
93
+ battery.set("RefSystem", system_1)
94
+ study.add(battery)
95
+
96
+ study.save(r"C:\temp\my\updated_study")
97
+ ```
98
+
99
+
100
+ Full documentation
101
+ ------------------
102
+
103
+ The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/factory/).
104
+
105
+ Releases
106
+ --------
107
+
108
+ New releases can be found in the release notes at [https://psrenergy-docs.github.io/factory/releases.html](https://psrenergy-docs.github.io/factory/releases.html).
@@ -2,21 +2,21 @@ psr/apps/__init__.py,sha256=frSq1WIy5vIdU21xJIGX7U3XoAZRj0pcQmFb-R00b7I,228
2
2
  psr/apps/apps.py,sha256=8jVxTFZ73KFk_PbY-8rZDD8HBONdCjt-jzsDJyu2P50,6921
3
3
  psr/apps/version.py,sha256=vs459L6JsatAkUxna7BNG-vMCaXpO1Ye8c1bmkEx4U4,194
4
4
  psr/cloud/__init__.py,sha256=inZMwG7O9Fca9hg1BhqYObOYtTTJOkpuTIuXnkHJZkI,246
5
- psr/cloud/cloud.py,sha256=sl-Sbmhg7EPeECi1FH4fI12LGGzQA7eBtbb5zgINJ2A,42235
5
+ psr/cloud/cloud.py,sha256=5Id6YAVqUjcakttj9DqiCmgviYWK5IBccOHkb5d4ltA,43374
6
6
  psr/cloud/data.py,sha256=3zWh1qnBNFfI8K3N8jZKqDnzHWMQ5llc_wwGMZ4FtKs,3548
7
7
  psr/cloud/desktop.py,sha256=JFroCMEFV1Nz3has74n7OVrGCg2lS7Ev5bcjdw2hRxY,2980
8
8
  psr/cloud/log.py,sha256=Dvhz1enIWlFWeaRK7JAAuZVPfODgoEIRNcHEmbEliyQ,1366
9
9
  psr/cloud/status.py,sha256=vcI4B9S6wCt9maT5NNrVwYaEgGIvy6kkC1UVpJjYbtw,3607
10
10
  psr/cloud/tempfile.py,sha256=1IOeye0eKWnmBynK5K5FMWiTaEVhn4GbQ8_y0THEva0,3893
11
- psr/cloud/version.py,sha256=FMkUnJ7LLpNt9YmROO5l8D4w-g7A6-Fo0eI9JbYZh0o,192
11
+ psr/cloud/version.py,sha256=BpUfaGYiH-pI7AmsrOg4kw1AMIrzxQnhaYJhik3dXPA,192
12
12
  psr/cloud/xml.py,sha256=dmBh4iRieORCctm1obz1EGA2QN-KkZlH5_dQfBud-AI,1847
13
- psr/factory/__init__.py,sha256=yW9nyLv3uwvnNV1-1OPmfg43kB7Ioeulb-jPNU1Lw3s,218
14
- psr/factory/api.py,sha256=a2iH0am4O9SStICiy0iID_s3OHX__fC2w0q9UczQUFk,95251
15
- psr/factory/factory.dll,sha256=o-FjmD45wpt_f89h8s6dbCh2NH6LT5NGLMh47iMe6_c,17730096
16
- psr/factory/factory.pmd,sha256=3fGQyBFd16Msfn4ZJe8TDFc759XylW5HqQhdwsSReMM,228259
17
- psr/factory/factory.pmk,sha256=1AQ9L3PAPmCvFZaecjGH7psIa-SURZ7WNnZp1rCnL98,551552
18
- psr/factory/factorylib.py,sha256=7WK-g9K8juNoEwndCeTGYLMOV421QjO8Q0NlTqgvZzs,26839
19
- psr/factory/libcurl-x64.dll,sha256=upYQ3cF76RcWm5DWoTNkYvYNkh9CngyYmL7e1qBeqAs,5328944
13
+ psr/factory/__init__.py,sha256=lgKVj-eqOOmnk_p7wb2ScOICXmUf_P_eILgZE2sJuI0,218
14
+ psr/factory/api.py,sha256=A7MQ5uhCWHuy4dDwOf9i2zDZ7Jm-9lSYtkDgMFlw3n8,95962
15
+ psr/factory/factory.dll,sha256=-D_fB_YeX-0qYDWdrqm5poGsbbCHx3946rcSGgGBazI,17805344
16
+ psr/factory/factory.pmd,sha256=8AKUfKW1fQHT76oCzaCWLTpd0jwPTg2MV83C-KN4zA8,229668
17
+ psr/factory/factory.pmk,sha256=cOMeJvl_magd8mfOwdt-IJ77nQx2CCutPzC_AYPurCo,568182
18
+ psr/factory/factorylib.py,sha256=Orcg4X47J3J1CNr0WEERucqsTJLqt0TV9VFFZXLv6WE,26978
19
+ psr/factory/libcurl-x64.dll,sha256=i1buVpg57cf1FMEI_ddD0ocD3fk74vqeosyBA7IJ5QQ,5319200
20
20
  psr/factory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  psr/psrfcommon/__init__.py,sha256=WXR560XQllIjtFpWd0jiJEbUAQIyh5-6lwj-42_J95c,200
22
22
  psr/psrfcommon/psrfcommon.py,sha256=NABM5ahvyfSizDC9c0Vu9dVK1pD_vOzIGFHL1oz2E1o,1464
@@ -24,7 +24,8 @@ psr/psrfcommon/tempfile.py,sha256=5S13wa2DCLYTUdwbLm_KMBRnDRJ0WDlu8GO2BmZoNdg,39
24
24
  psr/runner/__init__.py,sha256=kI9HDX-B_LMQJUHHylFHas2rNpWfNNa0pZXoIvX_Alw,230
25
25
  psr/runner/runner.py,sha256=fiuwKDRnqOLfV5UKJamLMZqm7PneeVjgEEmhpZbMm98,26340
26
26
  psr/runner/version.py,sha256=mch2Y8anSXGMn9w72Z78PhSRhOyn55EwaoLAYhY4McE,194
27
- psr_factory-4.1.0b2.dist-info/METADATA,sha256=Slc6h7a1sMccXnw0G9rYjBTY2NKS4Te73pSoZ3C9sqM,1757
28
- psr_factory-4.1.0b2.dist-info/WHEEL,sha256=GRAwO4abswPoD8u6X5Ix8yKoy-wTIXRf_V-PAIDNIsM,97
29
- psr_factory-4.1.0b2.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
30
- psr_factory-4.1.0b2.dist-info/RECORD,,
27
+ psr_factory-4.1.0b4.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
28
+ psr_factory-4.1.0b4.dist-info/METADATA,sha256=2OmQazPLiYvF_1958lyh2C6GtOBf24nuWTjD7lpNBKU,3721
29
+ psr_factory-4.1.0b4.dist-info/WHEEL,sha256=jcBIzWeetTfKWoqh1t37_3WRou9luDyd3A1574l0jA4,97
30
+ psr_factory-4.1.0b4.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
31
+ psr_factory-4.1.0b4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-win_amd64
5
5
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 PSR Factory
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,70 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: psr-factory
3
- Version: 4.1.0b2
4
- Summary: PSR database management module.
5
- Author-email: "PSR Inc." <psrfactory@psr-inc.com>
6
- Project-URL: documentation, https://docs.psr-inc.com/factory/
7
- Classifier: Programming Language :: Python :: 3
8
- Requires-Python: >=3.9
9
- Description-Content-Type: text/markdown
10
-
11
- PSR Factory (version 4.1.0b2)
12
- ============================
13
-
14
- Factory is a library that helps to manage SDDP cases.
15
- It contains functions that create, load, and save studies, and also functions that create,
16
- access, and modify objects in a study.
17
-
18
-
19
- Installation
20
- ------------
21
-
22
- ### System-wide installation
23
-
24
- Open the command prompt and run the following command:
25
- ```bash
26
- pip install psr-factory
27
- ```
28
-
29
- Or, if the package directly from the wheel (whl) file:
30
-
31
- ```bash
32
- pip install psr_factory-4.1.0b2-py3-none-win_amd64.whl
33
- ```
34
-
35
- Factory will be available to all Python scripts in your system after importing it:
36
-
37
- ```python
38
- import psr.factory
39
- ```
40
-
41
-
42
- Usage sample
43
- ------------
44
-
45
- ```python
46
- import psr.factory
47
-
48
- study = psr.factory.load_study(r"C:\temp\my\study")
49
- system_1 = study.find("System.*")[0]
50
-
51
- battery = psr.factory.create("Battery")
52
- battery.code = 1
53
- battery.name = "Battery 1"
54
- battery.set("InstalledCapacity", 10.0)
55
- battery.set("RefSystem", system_1)
56
- study.add(battery)
57
-
58
- study.save(r"C:\temp\my\updated_study")
59
- ```
60
-
61
-
62
- Full documentation
63
- ------------------
64
-
65
- The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/manual/factory/).
66
-
67
- Releases
68
- --------
69
-
70
- New releases can be found in the release notes at [https://psrenergy-docs.github.io/factory/releases.html](https://psrenergy-docs.github.io/factory/releases.html).