Skip to content

Latest commit

Β 

History

History
45 lines (30 loc) Β· 1.18 KB

File metadata and controls

45 lines (30 loc) Β· 1.18 KB

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