1 unstable release

0.0.0 Jul 4, 2023

#5 in #mimics

MIT/Apache

6KB

pyon.rs

A Rust library that mimics Python built-in APIs

Example

[dependencies]
pyon = "0.1"
use pyon::{print, input, int, dir};
use pyon::random;

fn main() {
    print!("Hello, world!", end = "");

    let input = input!("Enter your name: ");
    let i = int!("1");
    print!(i.real);
    print!(dir!());
    print!(random::randint!(0, 10));
    print!(random::randint(0, 10));
}

No runtime deps