docent-python 0.1.14a0__py3-none-any.whl → 0.1.16a0__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.

Potentially problematic release.


This version of docent-python might be problematic. Click here for more details.

@@ -105,9 +105,17 @@ class AgentRunWriter:
105
105
  # Register shutdown hooks
106
106
  atexit.register(self.finish)
107
107
 
108
+ def _handle_sigint(s: int, f: object) -> None:
109
+ self._shutdown()
110
+ raise KeyboardInterrupt
111
+
112
+ def _handle_sigterm(s: int, f: object) -> None:
113
+ self._shutdown()
114
+ raise SystemExit(0)
115
+
108
116
  # Register signal handlers for graceful shutdown
109
- signal.signal(signal.SIGINT, lambda s, f: self._shutdown()) # Ctrl+C
110
- signal.signal(signal.SIGTERM, lambda s, f: self._shutdown()) # Kill signal
117
+ signal.signal(signal.SIGINT, _handle_sigint) # Ctrl+C
118
+ signal.signal(signal.SIGTERM, _handle_sigterm) # Kill signal
111
119
 
112
120
  def log_agent_runs(self, agent_runs: list[AgentRun]) -> None:
113
121
  """Put a list of AgentRun objects into the queue.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docent-python
3
- Version: 0.1.14a0
3
+ Version: 0.1.16a0
4
4
  Summary: Docent SDK
5
5
  Project-URL: Homepage, https://github.com/TransluceAI/docent
6
6
  Project-URL: Issues, https://github.com/TransluceAI/docent/issues
@@ -9,6 +9,8 @@ Author-email: Transluce <info@transluce.org>
9
9
  License-Expression: Apache-2.0
10
10
  License-File: LICENSE.md
11
11
  Requires-Python: >=3.11
12
+ Requires-Dist: backoff>=2.2.1
13
+ Requires-Dist: inspect-ai>=0.3.132
12
14
  Requires-Dist: opentelemetry-api>=1.34.1
13
15
  Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.34.1
14
16
  Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.34.1
@@ -24,9 +24,9 @@ docent/samples/load.py,sha256=ZGE07r83GBNO4A0QBh5aQ18WAu3mTWA1vxUoHd90nrM,207
24
24
  docent/samples/log.eval,sha256=orrW__9WBfANq7NwKsPSq9oTsQRcG6KohG5tMr_X_XY,397708
25
25
  docent/samples/tb_airline.json,sha256=eR2jFFRtOw06xqbEglh6-dPewjifOk-cuxJq67Dtu5I,47028
26
26
  docent/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- docent/sdk/agent_run_writer.py,sha256=QNCV4m36c9BuhzWCyuzs0wH9ql8uubzcQUXMhc3XVug,9135
27
+ docent/sdk/agent_run_writer.py,sha256=0X5IP6wegoDsPiN_mblEvJa4sNWNxjPLbfNuYyA-qgY,9345
28
28
  docent/sdk/client.py,sha256=fuJrTF87OtUojULFY7acZuqg5xmE8F-4HgEeEV8_gq0,14781
29
- docent_python-0.1.14a0.dist-info/METADATA,sha256=OpxpQ56Pzl7Af2VTR0mi1_VpZRFj6NlEjlqcLRY5Oec,1045
30
- docent_python-0.1.14a0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- docent_python-0.1.14a0.dist-info/licenses/LICENSE.md,sha256=QIMv2UiT6MppRasso4ymaA0w7ltkqmlL0HCt8CLD7Rc,580
32
- docent_python-0.1.14a0.dist-info/RECORD,,
29
+ docent_python-0.1.16a0.dist-info/METADATA,sha256=iRFgXqdlnoFQFQfPEoPtoQabW24OhnqmfpgAtje_tJY,1110
30
+ docent_python-0.1.16a0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ docent_python-0.1.16a0.dist-info/licenses/LICENSE.md,sha256=QIMv2UiT6MppRasso4ymaA0w7ltkqmlL0HCt8CLD7Rc,580
32
+ docent_python-0.1.16a0.dist-info/RECORD,,