inline-python 0.14.4

Inline Python code directly in your Rust code
Documentation
use inline_python::python;

#[test]
fn continue_context() {
    let c = inline_python::Context::new();
    c.run(python! {
        foo = 5
    });
    c.run(python! {
        assert foo == 5
    });
}

#[test]
fn extract_global() {
    let c = inline_python::Context::new();

    c.run(python! {
        foo = 5
    });

    assert_eq!(c.get::<i32>("foo"), 5);
}