pipeline-eds 0.2.15__tar.gz → 0.2.16__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.
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/PKG-INFO +1 -1
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/pyproject.toml +1 -1
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/cli.py +3 -2
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/env.py +2 -2
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/workspace_manager.py +21 -7
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/LICENSE +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/README.md +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/__init__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/__main__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/api/__init__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/api/eds.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/api/rjn.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/api/status_api.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/calls.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/configrationmanager.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/decorators.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/environment.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/gui_fastapi_plotly_live.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/gui_mpl_live.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/gui_plotly_static.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/helpers.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/install_appdata.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/logging_setup.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/pastehelpers.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/philosophy.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/plotbuffer.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/points_loader.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/queriesmanager.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/src/pipeline/time_manager.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/default-workspace.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/__init__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/code/__init__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/code/aggregator.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/code/collector.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/code/sanitizer.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/code/storage.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/configurations/config_time.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/configurations/configuration.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/README.md +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/aggregate/README.md +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/aggregate/live_data - Copy.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/aggregate/live_data_EFF.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/aggregate/live_data_INF.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/export_eds_points_neo.txt +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_data_load_to_postman_wetwell.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_data_load_to_postman_wetwell.xlsx +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_effluent.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_influent.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_wetwell.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/history/time_sample.txt +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/imports/zdMaxson_idcsD321E_sid11003.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/imports/zdMaxson_idcsFI8001_sid8528.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/imports/zdMaxson_idcsM100FI_sid2308.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/imports/zdMaxson_idcsM310LI_sid2382.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/default-queries.toml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/points-maxson.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/points-stiles.csv +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/timestamps_success.json +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/scripts/__init__.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/scripts/daemon_runner.py +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/secrets/README.md +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/secrets/secrets-example.yaml +0 -0
- {pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_termux/..txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "pipeline-eds"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.16"
|
4
4
|
description = "The official API pipeline library for mulch-based projects. Key target: Emerson Ovation EDS REST API."
|
5
5
|
authors = ["George Clayton Bennett <george.bennett@memphistn.gov>"]
|
6
6
|
license = "BSD-3"
|
@@ -17,7 +17,7 @@ from importlib.metadata import version, PackageNotFoundError
|
|
17
17
|
|
18
18
|
from pipeline.env import SecretConfig
|
19
19
|
#from pipeline.helpers import setup_logging
|
20
|
-
from pipeline.workspace_manager import WorkspaceManager
|
20
|
+
#from pipeline.workspace_manager import WorkspaceManager
|
21
21
|
|
22
22
|
### Versioning
|
23
23
|
CLI_APP_NAME = "pipeline"
|
@@ -71,6 +71,7 @@ def run(
|
|
71
71
|
Import and run a workspace's main() function.
|
72
72
|
"""
|
73
73
|
# Determine workspace name
|
74
|
+
from pipeline.workspace_manager import WorkspaceManager
|
74
75
|
if workspace is None:
|
75
76
|
workspace = WorkspaceManager.identify_default_workspace_name()
|
76
77
|
wm = WorkspaceManager(workspace)
|
@@ -160,7 +161,7 @@ def trend(
|
|
160
161
|
|
161
162
|
# Should automatically choose time step granularity based on time length; map
|
162
163
|
if step_seconds is None:
|
163
|
-
step_seconds = helpers.nice_step(
|
164
|
+
step_seconds = helpers.nice_step(TimeManager(dt_finish).as_unix()-TimeManager(dt_start.as_unix())) # TimeManager(starttime).as_unix()
|
164
165
|
results = load_historic_data(session, iess_list, dt_start, dt_finish, step_seconds)
|
165
166
|
if not results:
|
166
167
|
return
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#env.__main__.py
|
2
2
|
|
3
3
|
import yaml
|
4
|
-
from pipeline.workspace_manager import WorkspaceManager
|
5
|
-
|
6
4
|
'''
|
7
5
|
migrate this to ConfigurationManager
|
8
6
|
'''
|
@@ -49,6 +47,8 @@ def demo_secrets():
|
|
49
47
|
caed defaut_workspace.toml - Clayton Bennett 26 April 2025.
|
50
48
|
However this call can also be made if another project is made the active project.
|
51
49
|
"""
|
50
|
+
from pipeline.workspace_manager import WorkspaceManager
|
51
|
+
|
52
52
|
workspace_name = WorkspaceManager.identify_default_workspace_name()
|
53
53
|
workspace_manager = WorkspaceManager(workspace_name)
|
54
54
|
config = SecretConfig.load_config(secrets_file_path = workspace_manager.get_secrets_file_path())
|
@@ -3,6 +3,7 @@ import toml
|
|
3
3
|
import logging
|
4
4
|
from pathlib import Path
|
5
5
|
import sys
|
6
|
+
import mulch
|
6
7
|
|
7
8
|
'''
|
8
9
|
Goal:
|
@@ -220,12 +221,20 @@ class WorkspaceManager:
|
|
220
221
|
"""
|
221
222
|
Class method that reads default-workspace.toml to identify the default-workspace path.
|
222
223
|
"""
|
223
|
-
|
224
|
+
|
224
225
|
workspaces_dir = cls.ROOT_DIR / cls.WORKSPACES_DIR_NAME
|
225
|
-
|
226
|
-
if
|
227
|
-
|
228
|
-
|
226
|
+
workspace_name = cls.identify_default_workspace_name()
|
227
|
+
if workspace_name is None:
|
228
|
+
workspace_name = cls.most_recent_workspace_name() # if
|
229
|
+
if workspace_name is None:
|
230
|
+
mulch.workspace(target_dir = workspaces_dir, scaffold = workspaces_dir / '.mulch' / 'mulch.toml', workspace_name = 'eds') # allow date based default if no workspace_name is provided
|
231
|
+
workspace_name = 'eds'
|
232
|
+
workspace_path = workspaces_dir / workspace_name
|
233
|
+
if not workspace_path.exists():
|
234
|
+
#raise FileNotFoundError(f"Workspace directory not found: {default_workspace_path}")
|
235
|
+
print("No default_workspace.toml file to identify a default workspace folder, so the most recently edited folder will be used.")
|
236
|
+
|
237
|
+
return workspace_path
|
229
238
|
|
230
239
|
'''
|
231
240
|
@classmethod
|
@@ -249,7 +258,8 @@ class WorkspaceManager:
|
|
249
258
|
default_toml_path = workspaces_dir / cls.DEFAULT_WORKSPACE_TOML_FILE_NAME
|
250
259
|
|
251
260
|
if not default_toml_path.exists():
|
252
|
-
|
261
|
+
return None
|
262
|
+
#raise FileNotFoundError(f"Missing {cls.DEFAULT_WORKSPACE_TOML_FILE_NAME} in {workspaces_dir}")
|
253
263
|
|
254
264
|
with open(default_toml_path, 'r') as f:
|
255
265
|
data = toml.load(f)
|
@@ -298,7 +308,11 @@ class WorkspaceManager:
|
|
298
308
|
cls.workspaces_dir = workspaces_dir
|
299
309
|
default_file = workspaces_dir / cls.DEFAULT_WORKSPACE_TOML_FILE_NAME
|
300
310
|
if not default_file.exists():
|
301
|
-
|
311
|
+
pass
|
312
|
+
#default_file.write_text("# Default workspace config\n")
|
313
|
+
mulch_scaffold_toml = []
|
314
|
+
mulch.seed(target_dir = workspaces_dir,scaffold = mulch_scaffold_toml)
|
315
|
+
mulch.workspace(base_dir = workspaces_dir.parent, scaffold_file = workspaces_dir / '.mulch' / 'mulch.toml', workspace_name = 'eds') # allow date based default if no workspace_name is provided
|
302
316
|
return workspaces_dir
|
303
317
|
|
304
318
|
def establish_default_workspace():
|
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
|
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
|
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
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/configurations/config_time.toml
RENAMED
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/configurations/configuration.toml
RENAMED
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/aggregate/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/export_eds_points_neo.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_effluent.csv
RENAMED
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_influent.csv
RENAMED
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/exports/manual_wetwell.csv
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/default-queries.toml
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/queries/timestamps_success.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pipeline_eds-0.2.15 → pipeline_eds-0.2.16}/workspaces/eds_to_rjn/secrets/secrets-example.yaml
RENAMED
File without changes
|
File without changes
|