python-to-mermaid 0.1.0

Convert Python code to Mermaid flowchart
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Result;
use std::io::{stdin, Read};

fn main() -> Result<()> {
    let source = {
        let mut buf = String::new();
        stdin().read_to_string(&mut buf)?;
        buf
    };

    let markdown = python_to_mermaid::python_file_to_markdown(&source)?;
    print!("{}", markdown);

    Ok(())
}