pipeline-eds 0.2.16__py3-none-any.whl → 0.2.19__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.
@@ -267,8 +267,10 @@ class WorkspaceManager:
267
267
  try:
268
268
  return data['default-workspace']['workspace'] # This dictates the proper formatting of the TOML file.
269
269
  except KeyError as e:
270
- raise KeyError(f"Missing key in {cls.DEFAULT_WORKSPACE_TOML_FILE_NAME}: {e}")
271
-
270
+ recent_ws = cls.most_recent_workspace_name() or "default"
271
+ default_toml_path.write_text(f"[default-workspace]\nworkspace = '{recent_ws}'\n")
272
+ #raise KeyError(f"Missing key in {cls.DEFAULT_WORKSPACE_TOML_FILE_NAME}: {e}")
273
+ return recent_ws
272
274
  def get_default_query_file_paths_list(self):
273
275
 
274
276
  default_query_path = self.get_queries_dir()/ 'default-queries.toml'
@@ -310,9 +312,10 @@ class WorkspaceManager:
310
312
  if not default_file.exists():
311
313
  pass
312
314
  #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
315
+ mulch_scaffold = []
316
+ mulch.seed(target_dir = workspaces_dir,scaffold_dict = mulch_scaffold)
317
+ workspace_path = workspaces_dir / "eds"
318
+ mulch.workspace(base_path = workspaces_dir.parent, scaffold_filepath = workspaces_dir / '.mulch' / 'mulch.toml', workspace_path = workspace_path) # allow date based default if no workspace_name is provided
316
319
  return workspaces_dir
317
320
 
318
321
  def establish_default_workspace():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pipeline-eds
3
- Version: 0.2.16
3
+ Version: 0.2.19
4
4
  Summary: The official API pipeline library for mulch-based projects. Key target: Emerson Ovation EDS REST API.
5
5
  License: BSD-3
6
6
  Author: George Clayton Bennett
@@ -15,7 +15,7 @@ Provides-Extra: windb
15
15
  Requires-Dist: certifi (>=2025.1.31,<2026.0.0)
16
16
  Requires-Dist: fastapi (>=0.116.1,<0.117.0)
17
17
  Requires-Dist: matplotlib (>=3.10.6,<4.0.0)
18
- Requires-Dist: mulch (>=0.2.8,<0.3.0)
18
+ Requires-Dist: mulch (==0.2.58)
19
19
  Requires-Dist: mysql-connector-python (>=9.3.0,<10.0.0)
20
20
  Requires-Dist: pendulum (>=3.1.0,<4.0.0)
21
21
  Requires-Dist: plotly (>=6.2.0,<7.0.0)
@@ -22,7 +22,7 @@ pipeline/plotbuffer.py,sha256=jCsFbT47TdR8Sq5tjj2JdhVELjRiebLPN7O4r2LjPeY,625
22
22
  pipeline/points_loader.py,sha256=4OCGLiatbP3D5hixVnYcFGThvBRYt_bf5DhNGdGw_9k,519
23
23
  pipeline/queriesmanager.py,sha256=QwPhDV39Z8mdAVDRXTF4ZPgc6JliMgLzucGaGZSlDac,5001
24
24
  pipeline/time_manager.py,sha256=gSK430SyHvhgUWLRg_z2nBiyad01v7ByyKafB138IkU,8351
25
- pipeline/workspace_manager.py,sha256=3EN0sqJDdv2C1keAz74uqloNv7aDHc76WKaLXNSRXRg,15090
25
+ pipeline/workspace_manager.py,sha256=cpBecFipE7f1_xTxiE9jmQ7U7Nnk6Ovg22lxlchnzI8,15335
26
26
  workspaces/default-workspace.toml,sha256=dI8y2l2WlEbIck6IZpbuQUP8-Bf48bBE1CKKsnVMc8w,300
27
27
  workspaces/eds_to_rjn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  workspaces/eds_to_rjn/code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -57,8 +57,8 @@ workspaces/eds_to_rjn/scripts/daemon_runner.py,sha256=gBCYrJ-FYPCTt_l5O07_YNrrGj
57
57
  workspaces/eds_to_rjn/secrets/README.md,sha256=tWf2bhopA0C08C8ImtHNZoPde9ub-sLMjX6EMe7lyJw,600
58
58
  workspaces/eds_to_rjn/secrets/secrets-example.yaml,sha256=qKGrKsKBC0ulDQRVbr1zkfNlr8WPWK4lg5GAvTqZ-T4,365
59
59
  workspaces/eds_to_termux/..txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- pipeline_eds-0.2.16.dist-info/entry_points.txt,sha256=jmU0FQ7-2AHXhKcj4TXPn61xLbHlycHA2lkDlRZT-pg,124
61
- pipeline_eds-0.2.16.dist-info/LICENSE,sha256=LKdx0wS1t9vFZpbRhDg_iLQ6ny-XsXRwhKAoCfrF6iA,1501
62
- pipeline_eds-0.2.16.dist-info/METADATA,sha256=kpGXHqeZrM22IGgaDwRksLA8g_sAMN_-9qO1eUmBk80,10027
63
- pipeline_eds-0.2.16.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
- pipeline_eds-0.2.16.dist-info/RECORD,,
60
+ pipeline_eds-0.2.19.dist-info/entry_points.txt,sha256=jmU0FQ7-2AHXhKcj4TXPn61xLbHlycHA2lkDlRZT-pg,124
61
+ pipeline_eds-0.2.19.dist-info/LICENSE,sha256=LKdx0wS1t9vFZpbRhDg_iLQ6ny-XsXRwhKAoCfrF6iA,1501
62
+ pipeline_eds-0.2.19.dist-info/METADATA,sha256=bb3AgFmHB60_h_er4q7tc5xkcu8X1X2iDZCRe69wC_k,10021
63
+ pipeline_eds-0.2.19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
+ pipeline_eds-0.2.19.dist-info/RECORD,,