pipeline-eds 0.2.20__tar.gz → 0.2.22__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.
Files changed (63) hide show
  1. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/PKG-INFO +1 -1
  2. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/pyproject.toml +1 -1
  3. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/cli.py +1 -0
  4. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/queriesmanager.py +1 -0
  5. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/LICENSE +0 -0
  6. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/README.md +0 -0
  7. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/__init__.py +0 -0
  8. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/__main__.py +0 -0
  9. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/api/__init__.py +0 -0
  10. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/api/eds.py +0 -0
  11. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/api/rjn.py +0 -0
  12. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/api/status_api.py +0 -0
  13. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/calls.py +0 -0
  14. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/configrationmanager.py +0 -0
  15. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/decorators.py +0 -0
  16. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/env.py +0 -0
  17. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/environment.py +0 -0
  18. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/gui_fastapi_plotly_live.py +0 -0
  19. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/gui_mpl_live.py +0 -0
  20. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/gui_plotly_static.py +0 -0
  21. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/helpers.py +0 -0
  22. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/install_appdata.py +0 -0
  23. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/logging_setup.py +0 -0
  24. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/pastehelpers.py +0 -0
  25. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/philosophy.py +0 -0
  26. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/plotbuffer.py +0 -0
  27. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/points_loader.py +0 -0
  28. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/time_manager.py +0 -0
  29. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/src/pipeline/workspace_manager.py +0 -0
  30. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/default-workspace.toml +0 -0
  31. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/__init__.py +0 -0
  32. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/code/__init__.py +0 -0
  33. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/code/aggregator.py +0 -0
  34. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/code/collector.py +0 -0
  35. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/code/sanitizer.py +0 -0
  36. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/code/storage.py +0 -0
  37. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/configurations/config_time.toml +0 -0
  38. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/configurations/configuration.toml +0 -0
  39. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/README.md +0 -0
  40. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/aggregate/README.md +0 -0
  41. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/aggregate/live_data - Copy.csv +0 -0
  42. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/aggregate/live_data_EFF.csv +0 -0
  43. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/aggregate/live_data_INF.csv +0 -0
  44. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/export_eds_points_neo.txt +0 -0
  45. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/manual_data_load_to_postman_wetwell.csv +0 -0
  46. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/manual_data_load_to_postman_wetwell.xlsx +0 -0
  47. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/manual_effluent.csv +0 -0
  48. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/manual_influent.csv +0 -0
  49. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/exports/manual_wetwell.csv +0 -0
  50. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/history/time_sample.txt +0 -0
  51. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/imports/zdMaxson_idcsD321E_sid11003.toml +0 -0
  52. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/imports/zdMaxson_idcsFI8001_sid8528.toml +0 -0
  53. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/imports/zdMaxson_idcsM100FI_sid2308.toml +0 -0
  54. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/imports/zdMaxson_idcsM310LI_sid2382.toml +0 -0
  55. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/queries/default-queries.toml +0 -0
  56. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/queries/points-maxson.csv +0 -0
  57. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/queries/points-stiles.csv +0 -0
  58. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/queries/timestamps_success.json +0 -0
  59. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/scripts/__init__.py +0 -0
  60. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/scripts/daemon_runner.py +0 -0
  61. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/secrets/README.md +0 -0
  62. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_rjn/secrets/secrets-example.yaml +0 -0
  63. {pipeline_eds-0.2.20 → pipeline_eds-0.2.22}/workspaces/eds_to_termux/..txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pipeline-eds
3
- Version: 0.2.20
3
+ Version: 0.2.22
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pipeline-eds"
3
- version = "0.2.20"
3
+ version = "0.2.22"
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"
@@ -16,6 +16,7 @@ from pathlib import Path
16
16
  from importlib.metadata import version, PackageNotFoundError
17
17
 
18
18
  from pipeline.env import SecretConfig
19
+ from pipeline.time_manager import TimeManager
19
20
  #from pipeline.helpers import setup_logging
20
21
  #from pipeline.workspace_manager import WorkspaceManager
21
22
 
@@ -63,6 +63,7 @@ class QueriesManager:
63
63
 
64
64
  if not data:
65
65
  # No stored value found — go back one hour from now, rounded down to nearest 5 minutes
66
+ one_hour_ago_local = TimeManager(datetime.now()).as_unix() - 3600 # now - 1 hour in unix seconds
66
67
  one_hour_ago_local = TimeManager(one_hour_ago_local).as_datetime()
67
68
  #one_hour_ago_utc = TimeManager.from_local(one_hour_ago_local, zone_name = timezone_config)
68
69
  tm = TimeManager(one_hour_ago_local).round_down_to_nearest_five()
File without changes
File without changes