puff-rs 0.1.5

Puff - Deep Stack Python Runtime and GraphQL library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use puff_rs::prelude::*;
use puff_rs::program::commands::PytestCommand;

fn main() -> ExitCode {
    let rc = RuntimeConfig::default()
        .add_python_path("./examples")
        .set_asyncio(true)
        .set_task_queue(true)
        .set_redis(true)
        .set_pubsub(true);

    Program::new("my_first_app")
        .about("This is my first app")
        .runtime_config(rc)
        .command(PytestCommand::new("./examples/python_tests"))
        .run()
}