pyconvexity 0.1.2__py3-none-any.whl → 0.1.3__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 pyconvexity might be problematic. Click here for more details.

Files changed (33) hide show
  1. pyconvexity/__init__.py +30 -6
  2. pyconvexity/data/README.md +101 -0
  3. pyconvexity/data/__init__.py +18 -0
  4. pyconvexity/data/__pycache__/__init__.cpython-313.pyc +0 -0
  5. pyconvexity/data/loaders/__init__.py +3 -0
  6. pyconvexity/data/loaders/__pycache__/__init__.cpython-313.pyc +0 -0
  7. pyconvexity/data/loaders/__pycache__/cache.cpython-313.pyc +0 -0
  8. pyconvexity/data/loaders/cache.py +212 -0
  9. pyconvexity/data/sources/__init__.py +5 -0
  10. pyconvexity/data/sources/__pycache__/__init__.cpython-313.pyc +0 -0
  11. pyconvexity/data/sources/__pycache__/gem.cpython-313.pyc +0 -0
  12. pyconvexity/data/sources/gem.py +412 -0
  13. pyconvexity/io/__init__.py +32 -0
  14. pyconvexity/io/excel_exporter.py +991 -0
  15. pyconvexity/io/excel_importer.py +1112 -0
  16. pyconvexity/io/netcdf_exporter.py +192 -0
  17. pyconvexity/io/netcdf_importer.py +599 -0
  18. pyconvexity/models/__init__.py +7 -0
  19. pyconvexity/models/components.py +3 -0
  20. pyconvexity/models/scenarios.py +177 -0
  21. pyconvexity/solvers/__init__.py +29 -0
  22. pyconvexity/solvers/pypsa/__init__.py +24 -0
  23. pyconvexity/solvers/pypsa/api.py +398 -0
  24. pyconvexity/solvers/pypsa/batch_loader.py +311 -0
  25. pyconvexity/solvers/pypsa/builder.py +656 -0
  26. pyconvexity/solvers/pypsa/constraints.py +321 -0
  27. pyconvexity/solvers/pypsa/solver.py +1255 -0
  28. pyconvexity/solvers/pypsa/storage.py +2207 -0
  29. {pyconvexity-0.1.2.dist-info → pyconvexity-0.1.3.dist-info}/METADATA +5 -2
  30. pyconvexity-0.1.3.dist-info/RECORD +45 -0
  31. pyconvexity-0.1.2.dist-info/RECORD +0 -20
  32. {pyconvexity-0.1.2.dist-info → pyconvexity-0.1.3.dist-info}/WHEEL +0 -0
  33. {pyconvexity-0.1.2.dist-info → pyconvexity-0.1.3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyconvexity
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Python library for energy system modeling and optimization with PyPSA
5
5
  Author-email: Convexity Team <info@convexity.com>
6
6
  License: MIT
@@ -32,6 +32,9 @@ Requires-Dist: xlsxwriter>=3.0.0; extra == "excel"
32
32
  Provides-Extra: netcdf
33
33
  Requires-Dist: netcdf4>=1.6.0; extra == "netcdf"
34
34
  Requires-Dist: xarray>=2022.3.0; extra == "netcdf"
35
+ Provides-Extra: data
36
+ Requires-Dist: country-converter>=1.0.0; extra == "data"
37
+ Requires-Dist: pyyaml>=6.0.0; extra == "data"
35
38
  Provides-Extra: dev
36
39
  Requires-Dist: pytest>=7.0.0; extra == "dev"
37
40
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
@@ -40,7 +43,7 @@ Requires-Dist: isort>=5.10.0; extra == "dev"
40
43
  Requires-Dist: mypy>=1.0.0; extra == "dev"
41
44
  Requires-Dist: pre-commit>=2.20.0; extra == "dev"
42
45
  Provides-Extra: all
43
- Requires-Dist: pyconvexity[excel,netcdf,pypsa]; extra == "all"
46
+ Requires-Dist: pyconvexity[data,excel,netcdf,pypsa]; extra == "all"
44
47
 
45
48
  # PyConvexity
46
49
 
@@ -0,0 +1,45 @@
1
+ pyconvexity/__init__.py,sha256=jqb1UKSe6NrdgWsBWCbX3vqP-SG3G8edL-IiLP6zgB4,4008
2
+ pyconvexity/_version.py,sha256=Cu2pGbVzHvik6YUUC3R9lxs9dHnXZq1Uj0YfLLblLUs,133
3
+ pyconvexity/core/__init__.py,sha256=4SYAE4zqzGIRFSP4IoT7EzK-LCTB1HLe9EWhfi2aUmU,1253
4
+ pyconvexity/core/database.py,sha256=4OW1sgwDT4ltxdW6b250ytTlsC9sk26Rz0VrveXSL4A,9605
5
+ pyconvexity/core/errors.py,sha256=HhrrOOEBJrzyB56_pmqh3NWvX6uHqWWNkdE5XM16rYI,2881
6
+ pyconvexity/core/types.py,sha256=eoVOAcDJWzjJKO9lYN7O17Us0XbahBpVBwv6uxdldh0,8508
7
+ pyconvexity/data/README.md,sha256=-tyDHVjqzfWbVvgM4yYYx8cysmgvFXI6plVQNxSHBmo,3156
8
+ pyconvexity/data/__init__.py,sha256=BrgC3LGSlReLbC0EpM6UxywwUHxRvts379CvZFE0qWU,514
9
+ pyconvexity/data/__pycache__/__init__.cpython-313.pyc,sha256=hROLB--v03bbH6fDHH2qN0VdHJfzyl8zUsmz3nbrWK0,617
10
+ pyconvexity/data/loaders/__init__.py,sha256=6xPtOmH2n1mNby7ZjA-2Mk9F48Q246RNsyMnCnJ6gwA,60
11
+ pyconvexity/data/loaders/cache.py,sha256=nnz8bV3slSehOT0alexFga9tM1XoJqWHBGqaXvz132U,7299
12
+ pyconvexity/data/loaders/__pycache__/__init__.cpython-313.pyc,sha256=u-riOvthJR8627xq6rdnV3ZcT4X9qMMhnj1vNYDYnow,265
13
+ pyconvexity/data/loaders/__pycache__/cache.cpython-313.pyc,sha256=Pj017b28_wJzdsGJMVCwNJ8B6qyK86_IvNmxlsVXBj4,9804
14
+ pyconvexity/data/schema/01_core_schema.sql,sha256=Vt6vASZEASPPQYuhtsARLj3PxP7VdZtfxmGcs-Id-xc,18785
15
+ pyconvexity/data/schema/02_data_metadata.sql,sha256=9E7tnBBu0wc4w3YijyPf_vG_8KVFyu7cu59TyAP5F94,21818
16
+ pyconvexity/data/schema/03_validation_data.sql,sha256=1rKFi9y6jQ2OnfH32jnIKnZ5WtB8eG43hz0OVJhwn3w,58325
17
+ pyconvexity/data/schema/04_scenario_schema.sql,sha256=sL4PySJNHIthXsnoJ2T5pdXUbpAi94ld0XGuU8LwNuQ,4641
18
+ pyconvexity/data/sources/__init__.py,sha256=Dn6_oS7wB-vLjMj2YeXlmIl6hNjACbicimSabKxIWnc,108
19
+ pyconvexity/data/sources/gem.py,sha256=Qr19E4s1_pRC-ztq4sKaqkpXfeGOA92YphyTVqg3Of8,14950
20
+ pyconvexity/data/sources/__pycache__/__init__.cpython-313.pyc,sha256=jnWiwIYlwg6MvY2H2ZW9Sbs5wHo1VYZ6vMAe8M-ftmM,313
21
+ pyconvexity/data/sources/__pycache__/gem.cpython-313.pyc,sha256=YEq20sM6L_RbJENhO4EU7a93jCMD5dCMkakHg8Ykgzo,14485
22
+ pyconvexity/io/__init__.py,sha256=glGzXBRGHROrTS8xe-RTGyRQUgsaksafxXVt9GpW63E,803
23
+ pyconvexity/io/excel_exporter.py,sha256=-kcrtSazm0QDx7AIYPHgzjnhfjV1p2Az3hVRboWxGKs,47238
24
+ pyconvexity/io/excel_importer.py,sha256=hkpnevc03m3kPN9aZ-eJy7zgKIY2TC9-2ORkyPmK5pc,56985
25
+ pyconvexity/io/netcdf_exporter.py,sha256=AMM-uXBj8sh86n5m57aZ6S7LulAyIx_HM-eM-26BrWQ,7428
26
+ pyconvexity/io/netcdf_importer.py,sha256=oEtXT22SNfBZTfz9lH8503UgFKGYD9GRJu0Wd81Wyu4,27404
27
+ pyconvexity/models/__init__.py,sha256=-CEdfjwOp-6XvR4vVyV1Z6umF1axs82zzvv7VRZNcys,1690
28
+ pyconvexity/models/attributes.py,sha256=gh02j_hpSeyCNg0Jt20i7Y7wOntajnuzI926W5wzA3Q,14130
29
+ pyconvexity/models/components.py,sha256=yccDW9ROtjsk5eIO38Tr420VUj9KeV03IVLrfmZgj3c,14942
30
+ pyconvexity/models/network.py,sha256=-itmot8StUdXogDpZUhGVIUC5uAEucYQ1LiTN1vPdA4,12923
31
+ pyconvexity/models/scenarios.py,sha256=6-devNWZccnFeQr3IsP19GkO6Ixp914RKD-6lIduN-A,5164
32
+ pyconvexity/solvers/__init__.py,sha256=zoVf6T2Tmyj2XOeiVbEvaIMOX584orqCz1q9t1oXy0M,674
33
+ pyconvexity/solvers/pypsa/__init__.py,sha256=KZqYDo7CvwB-5Kp784xxxtdn5kRcmn3gGSRlaQdDA4c,554
34
+ pyconvexity/solvers/pypsa/api.py,sha256=YPPKfWRSMgFryU2uE7qul7Gk-hxJij0PIEhFqraV1C4,15509
35
+ pyconvexity/solvers/pypsa/batch_loader.py,sha256=AR7lsPTVQmQDky-KAaKHsluRQS3OeUeGurnjVqihClE,14367
36
+ pyconvexity/solvers/pypsa/builder.py,sha256=cpktPArzmD78kI-nZq-RBTMgoro9D9tvTfWQwOlD_Gg,29808
37
+ pyconvexity/solvers/pypsa/constraints.py,sha256=uX0X_EDFak7YtnjgNxj3CSv1nxDQI-fT4eg9lyySAv4,13678
38
+ pyconvexity/solvers/pypsa/solver.py,sha256=rOkYxKqI1NXHQMWLmKYtitY1xSf0FlEOLc4tbaLwURg,62413
39
+ pyconvexity/solvers/pypsa/storage.py,sha256=gkG7qLvbHp8pcbTL2eMKJBmHxlJKzXAThF8MJK_eSQg,129122
40
+ pyconvexity/validation/__init__.py,sha256=_6SVqXkaDFqmagub_O064Zm_QIdBrOra-Gvvbo9vM4I,549
41
+ pyconvexity/validation/rules.py,sha256=bshO2Ibw8tBurg708Dmf79rIBoGV32t-jNHltjap9Pw,9323
42
+ pyconvexity-0.1.3.dist-info/METADATA,sha256=lo_my7ufnMo_sa_4N9A4prQbsK_aj0W5lF2IE3gs_aE,4880
43
+ pyconvexity-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ pyconvexity-0.1.3.dist-info/top_level.txt,sha256=wFPEDXVaebR3JO5Tt3HNse-ws5aROCcxEco15d6j64s,12
45
+ pyconvexity-0.1.3.dist-info/RECORD,,
@@ -1,20 +0,0 @@
1
- pyconvexity/__init__.py,sha256=mEtafBwQ1A9s-hEv3o3XeXlJ7iFtbdS691wVUUw5miY,3303
2
- pyconvexity/_version.py,sha256=Cu2pGbVzHvik6YUUC3R9lxs9dHnXZq1Uj0YfLLblLUs,133
3
- pyconvexity/core/__init__.py,sha256=4SYAE4zqzGIRFSP4IoT7EzK-LCTB1HLe9EWhfi2aUmU,1253
4
- pyconvexity/core/database.py,sha256=4OW1sgwDT4ltxdW6b250ytTlsC9sk26Rz0VrveXSL4A,9605
5
- pyconvexity/core/errors.py,sha256=HhrrOOEBJrzyB56_pmqh3NWvX6uHqWWNkdE5XM16rYI,2881
6
- pyconvexity/core/types.py,sha256=eoVOAcDJWzjJKO9lYN7O17Us0XbahBpVBwv6uxdldh0,8508
7
- pyconvexity/data/schema/01_core_schema.sql,sha256=Vt6vASZEASPPQYuhtsARLj3PxP7VdZtfxmGcs-Id-xc,18785
8
- pyconvexity/data/schema/02_data_metadata.sql,sha256=9E7tnBBu0wc4w3YijyPf_vG_8KVFyu7cu59TyAP5F94,21818
9
- pyconvexity/data/schema/03_validation_data.sql,sha256=1rKFi9y6jQ2OnfH32jnIKnZ5WtB8eG43hz0OVJhwn3w,58325
10
- pyconvexity/data/schema/04_scenario_schema.sql,sha256=sL4PySJNHIthXsnoJ2T5pdXUbpAi94ld0XGuU8LwNuQ,4641
11
- pyconvexity/models/__init__.py,sha256=eVwf0ZTTEq1nM9M3NSMvj2yLPUOPNKMXv2A5GLT34-c,1470
12
- pyconvexity/models/attributes.py,sha256=gh02j_hpSeyCNg0Jt20i7Y7wOntajnuzI926W5wzA3Q,14130
13
- pyconvexity/models/components.py,sha256=K7QWelMVU_D18skvBZbap9dxP2AMS2116fcpmemkE6U,14629
14
- pyconvexity/models/network.py,sha256=-itmot8StUdXogDpZUhGVIUC5uAEucYQ1LiTN1vPdA4,12923
15
- pyconvexity/validation/__init__.py,sha256=_6SVqXkaDFqmagub_O064Zm_QIdBrOra-Gvvbo9vM4I,549
16
- pyconvexity/validation/rules.py,sha256=bshO2Ibw8tBurg708Dmf79rIBoGV32t-jNHltjap9Pw,9323
17
- pyconvexity-0.1.2.dist-info/METADATA,sha256=Lmk43_bNLN4jVbnqynhutZq9sK29vywiwbKBFjAWL7M,4751
18
- pyconvexity-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- pyconvexity-0.1.2.dist-info/top_level.txt,sha256=wFPEDXVaebR3JO5Tt3HNse-ws5aROCcxEco15d6j64s,12
20
- pyconvexity-0.1.2.dist-info/RECORD,,