stable-inline-python

Crates.iostable-inline-python
lib.rsstable-inline-python
version0.1.2
sourcesrc
created_at2023-11-16 04:35:13.371004
updated_at2023-11-17 01:28:17.841957
descriptionStable Variant of inline-python.
homepage
repositoryhttps://github.com/JewishLewish/stable-inline-python
max_upload_size
id1037317
size13,091
Lenny (JewishLewish)

documentation

README

stable-inline-python

Stable Ver. of Inline Rust

QuickStart

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!
}
Commit count: 27

cargo fmt