snowglobe 0.4.7__tar.gz → 0.4.8__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 (25) hide show
  1. {snowglobe-0.4.7/src/snowglobe.egg-info → snowglobe-0.4.8}/PKG-INFO +1 -1
  2. {snowglobe-0.4.7 → snowglobe-0.4.8}/pyproject.toml +1 -1
  3. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/app.py +13 -1
  4. {snowglobe-0.4.7 → snowglobe-0.4.8/src/snowglobe.egg-info}/PKG-INFO +1 -1
  5. {snowglobe-0.4.7 → snowglobe-0.4.8}/LICENSE +0 -0
  6. {snowglobe-0.4.7 → snowglobe-0.4.8}/README.md +0 -0
  7. {snowglobe-0.4.7 → snowglobe-0.4.8}/setup.cfg +0 -0
  8. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/__init__.py +0 -0
  9. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/cli.py +0 -0
  10. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/cli_utils.py +0 -0
  11. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/config.py +0 -0
  12. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/models.py +0 -0
  13. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/project_manager.py +0 -0
  14. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/stats.py +0 -0
  15. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe/client/src/utils.py +0 -0
  16. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/SOURCES.txt +0 -0
  17. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/dependency_links.txt +0 -0
  18. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/entry_points.txt +0 -0
  19. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/requires.txt +0 -0
  20. {snowglobe-0.4.7 → snowglobe-0.4.8}/src/snowglobe.egg-info/top_level.txt +0 -0
  21. {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_app.py +0 -0
  22. {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_cli.py +0 -0
  23. {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_config.py +0 -0
  24. {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_heartbeat.py +0 -0
  25. {snowglobe-0.4.7 → snowglobe-0.4.8}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: snowglobe
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: client server for usage with snowglobe experiments
5
5
  Author-email: Guardrails AI <contact@guardrailsai.com>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "snowglobe"
3
- version = "0.4.7"
3
+ version = "0.4.8"
4
4
  authors = [
5
5
  {name = "Guardrails AI", email = "contact@guardrailsai.com"}
6
6
  ]
@@ -5,6 +5,7 @@ import importlib.util
5
5
  import json
6
6
  import logging
7
7
  import os
8
+ import sys
8
9
  import time
9
10
  import traceback
10
11
  from collections import defaultdict, deque
@@ -685,7 +686,17 @@ async def lifespan(app: FastAPI):
685
686
  "agent_wrapper", agent_file_path
686
687
  )
687
688
  agent_module = importlib.util.module_from_spec(spec)
688
- spec.loader.exec_module(agent_module)
689
+
690
+ # Add current directory to path
691
+ sys_path_backup = sys.path.copy()
692
+ current_dir = os.getcwd()
693
+ if current_dir not in sys.path:
694
+ sys.path.insert(0, current_dir)
695
+
696
+ try:
697
+ spec.loader.exec_module(agent_module)
698
+ finally:
699
+ sys.path = sys_path_backup
689
700
 
690
701
  if not hasattr(agent_module, "process_scenario"):
691
702
  LOGGER.warning(
@@ -699,6 +710,7 @@ async def lifespan(app: FastAPI):
699
710
  }
700
711
 
701
712
  except Exception as e:
713
+ traceback.print_exc()
702
714
  LOGGER.error(f"Error loading agent {filename}: {e}")
703
715
  continue
704
716
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: snowglobe
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: client server for usage with snowglobe experiments
5
5
  Author-email: Guardrails AI <contact@guardrailsai.com>
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes