forked from nulang-org/nulang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.rs
More file actions
26 lines (24 loc) · 792 Bytes
/
Copy pathmod.rs
File metadata and controls
26 lines (24 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! Python Interop for Nulang.
//!
//! Provides integration with the Python ecosystem via PyO3. All data
//! crossing the Rust/Python boundary is explicitly marshaled between
//! Nulang VM [`Value`](crate::vm::Value)s and Python objects.
//!
//! # Modules
//!
//! - **`bridge`** — Python interpreter bridge: GIL management, module
//! imports, attribute access, function calls, and a global object
//! registry for refcounted Python handles.
//! - **`marshal`** — Bidirectional conversion between Nulang VM
//! [`Value`](crate::vm::Value)s and Python objects.
//!
//! # Usage
//!
//! ```nulang
//! let result = perform Python.call("torch", ["Tensor"], [[1.0, 2.0, 3.0]])
//! perform IO.print(result)
//! ```
pub mod bridge;
pub mod marshal;
pub use bridge::*;
pub use marshal::*;