stable-inline-python 0.1.2

Stable Variant of inline-python.
Documentation
  • Coverage
  • 80%
    8 out of 10 items documented0 out of 6 items with examples
  • Size
  • Source code size: 12.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 390.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • JewishLewish/stable-inline-python
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JewishLewish

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!
}