Skip to content

thewh1teagle/tauric

Repository files navigation

tauric

PyPi Version

C-API for tauri written in Rust.

Potential: Use tauri from Python, Go, TypeScript etc..

Features

  • 🔗 Easy integration with C/C++ (or any other language) via C API
  • 🐍 Python support
  • 📦 Precompiled library and C header files available in the releases
  • 🖥️ Support for Windows (x86-64), Linux (x86-64), macOS (x86/arm64)

Install

Python 🐍

pip install tauripy

Examples

from tauripy import Tauri
from pathlib import Path
import json

def on_command(message: bytes):
    print(f"Received: {message.decode('utf-8')}")
    return json.dumps({'message': 'Hello from Python!'}).encode('utf-8')

tauric = Tauri("com.tauric.dev", "tauric")
tauric.mount_frontend('./dist') # you should create dist folder with index.html
tauric.on_command(on_command)
tauric.run(lambda: tauric.create_window("example_window", "tauric", "fs://index.html"))

See also examples

Roadmap

See Roadmap

About

C-API for tauri written in Rust

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors