inline-python 0.5.1

Inline Python code directly in your Rust code
Documentation
#![feature(proc_macro_hygiene)]

use inline_python::{python, Context};

fn main() {
	python! {
		print("Hello")
	}

	let c = Context::new();

	c.run(python! {
		a = "asdf"
	});

	c.run(python! {
		print(a)
	});

	let result: Context = python! {
		foo = 123 + 4
	};

	result.run(python! {
		foo += 10
	});

	let x: i32 = result.get("foo");

	assert_eq!(x, 137);

	python! {
		print('x)
	}
}