pytauri-core 0.8.0

Core library for PyTauri
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use pyo3::prelude::*;
use tauri_plugin_websocket::{self as plugin};

use crate::{ext_mod::plugin::Plugin, tauri_runtime::Runtime};

/// See also: [tauri_plugin_websocket::init]
#[pyfunction]
pub fn init() -> Plugin {
    Plugin::new(Box::new(|| Box::new(plugin::init::<Runtime>())))
}

/// See also: [tauri_plugin_websocket]
#[pymodule(submodule, gil_used = false)]
pub mod websocket {
    #[pymodule_export]
    pub use super::init;
}