| Crates.io | pyon |
| lib.rs | pyon |
| version | 0.0.0 |
| created_at | 2023-07-04 02:55:57.686295+00 |
| updated_at | 2023-07-04 02:55:57.686295+00 |
| description | Mimics Python built-in APIs |
| homepage | |
| repository | |
| max_upload_size | |
| id | 907576 |
| size | 12,353 |
A Rust library that mimics Python built-in APIs
[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));
}