Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

nonebiotope/MTManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTManager

いわゆるElectronとかTauriみたいな感じで、フロントエンドはいわゆるHTML系で動かして、バックエンドをPythonで動かすっていう暴挙をするために作られたCommandシステムを搭載したRen'Py ゲームマネージャーです。

Electron要素は虚無のクセにPyctronとでも名づけようか...

適当な例でも載せておきますね

バックエンド側

import sanic

from bridge import Cog, Command

class TestCog(Cog):
    @Command
    async def greet(self, name: str) -> str:
        return f"Hello, {name}!"

app = sanic.Sanic(__name__)

TestCog(app)

app.run("0.0.0.0", 8000)

フロントエンド側

import { invoke } from "./invoke.js";

(() => {
    const greet = await invoke("greet", "NattyanTV");
    console.log(greet); // "Hello, NattyanTV!"
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published