Crates.io | stable-inline-python |
lib.rs | stable-inline-python |
version | 0.1.2 |
source | src |
created_at | 2023-11-16 04:35:13.371004 |
updated_at | 2023-11-17 01:28:17.841957 |
description | Stable Variant of inline-python. |
homepage | |
repository | https://github.com/JewishLewish/stable-inline-python |
max_upload_size | |
id | 1037317 |
size | 13,091 |
Stable Ver. of Inline Rust
use stable_inline_python::PyContext;
fn main() {
let c = PyContext::new();
c.run("x = 2"); //outputs 2
let x = c.get::<String>("x");
println!("{}",x.unwrap());
c.run("del x");
let x = c.get::<String>("x");
println!("{}",x.unwrap()); //error!
}