https://github.com/ugnmura/pyscript-solid
Write python code in Solid.js using Pyscript.
https://github.com/ugnmura/pyscript-solid
framework javascript jsx library pyscript python solid solidjs typescript
Last synced: 21 days ago
JSON representation
Write python code in Solid.js using Pyscript.
- Host: GitHub
- URL: https://github.com/ugnmura/pyscript-solid
- Owner: ugnmura
- License: mit
- Created: 2022-05-29T15:44:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T21:09:42.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T15:47:48.910Z (about 1 month ago)
- Topics: framework, javascript, jsx, library, pyscript, python, solid, solidjs, typescript
- Language: TypeScript
- Homepage:
- Size: 302 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# PyScript Solid
[](https://www.npmjs.com/package/pyscript-solid)
[](https://github.com/SushiWaUmai/pyscript-solid/blob/main/LICENSE)Use [PyScript](https://pyscript.net/) together with [Solid.js](https://www.solidjs.com/).
## Getting Started
### Installation
Install pyscript-solid using npm:```
npm install pyscript-solid
# or
yarn add pyscript-solid
# or
pnpm install pyscript-solid
```### Usage
Simple Hello World in pyscript-solid.```tsx
import type { Component } from "solid-js";
import { PyScript, PyScriptProvider } from "pyscript-solid";const App: Component = () => {
return (
print("Hello World")
);
};export default App;
```You can find more examples under the [`examples`](https://github.com/SushiWaUmai/pyscript-solid/tree/main/examples) directory.
## License
This library is lilcensed under the [MIT license](https://github.com/SushiWaUmai/pyscript-solid/blob/main/LICENSE).