C-API for tauri written in Rust.
Potential: Use tauri from Python, Go, TypeScript etc..
- 🔗 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)
Python 🐍
pip install tauripyfrom 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
See Roadmap