Avatar for the pydantic user
pydantic
monty
BlogDocsChangelog

Branches performance

Pull requests

feat: add MontySession for calling Python functions from Rust#271
last run
2 days ago
feat: add MontySession for calling Python functions from Rust Add MontySession<T> that runs Python setup code, retains the heap/globals/ interns, and allows repeated invocation of Python-defined functions from Rust. Key changes: - New session.rs with MontySession struct, call_function/call_function_with_print, function_names, has_function, and tracker_mut APIs - MontyRun::into_session/into_session_with_print entry points - VM::run_callable for invoking callables without an active parent frame - Refactored call_sync_function into call_sync_function_inner to support optional call_position (None when called from host, Some when called during bytecode execution) - call_function_no_position + call_heap_callable_no_position for frame-less dispatch - 23 integration tests covering basic calls, state persistence, closures, defaults, error handling, introspection, print capture, and complex types
2 days ago
00f5e80
rsr5:call-python-functions-from-rust
CodSpeed Performance Gauge
+1%
another newline
5 days ago
19d45b9
thomasst:fix-break-continue-stack-depth
CodSpeed Performance Gauge
0%
Change hashbrown version to 0.16 Update hashbrown dependency version to 0.16
5 days ago
2de344f
CremboC:fix/change-hashbrown-version
CodSpeed Performance Gauge
0%
fix example cases
6 days ago
c40f0d3
dh/heap-reader-2
CodSpeed Performance Gauge
+21%
© 2026 CodSpeed Technology
Home Terms Privacy Docs