Use PyScript together with Solid.js.
Install pyscript-solid using npm:
npm install pyscript-solid
# or
yarn add pyscript-solid
# or
pnpm install pyscript-solid
Simple Hello World in pyscript-solid.
import type { Component } from "solid-js";
import { PyScript, PyScriptProvider } from "pyscript-solid";
const App: Component = () => {
return (
<PyScriptProvider>
<PyScript>print("Hello World")</PyScript>
</PyScriptProvider>
);
};
export default App;
You can find more examples under the examples
directory.
This library is lilcensed under the MIT license.