gridappsd-python 2025.3.1a5__tar.gz → 2025.3.2a1__tar.gz
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.
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/PKG-INFO +3 -1
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/__main__.py +15 -2
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/pyproject.toml +3 -1
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/README.md +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/__init__.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/app_registration.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/difference_builder.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/docker_handler.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/field_interface/__init__.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/goss.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/gridappsd.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/houses.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/json_extension.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/loghandler.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/register_app.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/simulation.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/timeseries.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/topics.py +0 -0
- {gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: gridappsd-python
|
|
3
|
-
Version: 2025.3.
|
|
3
|
+
Version: 2025.3.2a1
|
|
4
4
|
Summary: A GridAPPS-D Python Adapter
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
Keywords: gridappsd,grid,activemq,powergrid,simulation,library
|
|
@@ -15,6 +15,8 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Requires-Dist: PyYAML (>=6.0,<7.0)
|
|
17
17
|
Requires-Dist: dateutils (>=0.6.7,<0.7.0)
|
|
18
|
+
Requires-Dist: dotenv (>=0.9.9,<0.10.0)
|
|
19
|
+
Requires-Dist: loguru (>=0.7.3,<0.8.0)
|
|
18
20
|
Requires-Dist: pytz (>=2022.7,<2023.0)
|
|
19
21
|
Requires-Dist: requests (==2.28.2)
|
|
20
22
|
Requires-Dist: stomp-py (==6.0.0)
|
|
@@ -44,10 +44,12 @@ import argparse
|
|
|
44
44
|
from argparse import ArgumentParser
|
|
45
45
|
from time import sleep
|
|
46
46
|
import yaml
|
|
47
|
+
from dotenv import load_dotenv
|
|
48
|
+
from pathlib import Path
|
|
47
49
|
|
|
48
50
|
from gridappsd import GridAPPSD
|
|
49
51
|
|
|
50
|
-
assert sys.version_info >= (3,
|
|
52
|
+
assert sys.version_info >= (3, 10), "Minimum version is python 3.10"
|
|
51
53
|
|
|
52
54
|
logging.basicConfig(stream=sys.stdout,
|
|
53
55
|
level=logging.INFO,
|
|
@@ -65,7 +67,9 @@ if __name__ == '__main__':
|
|
|
65
67
|
"--run-simulation",
|
|
66
68
|
type=argparse.FileType('r'),
|
|
67
69
|
help="Start running a simulation from a passed simulation file.")
|
|
68
|
-
|
|
70
|
+
group.add_argument("--env", required=False, type=str,
|
|
71
|
+
default=".env",
|
|
72
|
+
help="Load environment variables from a .env file.")
|
|
69
73
|
opts = parser.parse_args()
|
|
70
74
|
|
|
71
75
|
if opts.run_simulation:
|
|
@@ -75,6 +79,15 @@ if __name__ == '__main__':
|
|
|
75
79
|
sleep(1)
|
|
76
80
|
simulation.resume()
|
|
77
81
|
|
|
82
|
+
if opts.env:
|
|
83
|
+
_log.info(f"Loading environment variables from {opts.env}")
|
|
84
|
+
env_path = Path(opts.env).expanduser()
|
|
85
|
+
if env_path.is_file():
|
|
86
|
+
load_dotenv(opts.env)
|
|
87
|
+
else:
|
|
88
|
+
_log.error(f"Environment file {opts.env} not found. Skipping loading.")
|
|
89
|
+
sys.exit(1)
|
|
90
|
+
|
|
78
91
|
gappsd = GridAPPSD()
|
|
79
92
|
run_args = yaml.safe_load(opts.run_simulation)
|
|
80
93
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "gridappsd-python"
|
|
3
|
-
version = "2025.3.
|
|
3
|
+
version = "2025.3.2a1"
|
|
4
4
|
description = "A GridAPPS-D Python Adapter"
|
|
5
5
|
authors = [
|
|
6
6
|
"C. Allwardt <3979063+craig8@users.noreply.github.com>",
|
|
@@ -35,6 +35,8 @@ pytz = "^2022.7"
|
|
|
35
35
|
dateutils = "^0.6.7"
|
|
36
36
|
stomp-py = "6.0.0"
|
|
37
37
|
requests = "2.28.2"
|
|
38
|
+
dotenv = "^0.9.9"
|
|
39
|
+
loguru = "^0.7.3"
|
|
38
40
|
|
|
39
41
|
[tool.poetry.group.dev.dependencies]
|
|
40
42
|
pytest = "^8.3.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gridappsd_python-2025.3.1a5 → gridappsd_python-2025.3.2a1}/gridappsd/field_interface/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|