Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sushiwaumai/pyscript-solid
Write python code in Solid.js using Pyscript.
https://github.com/sushiwaumai/pyscript-solid
framework javascript jsx library pyscript python solid solidjs typescript
Last synced: about 6 hours ago
JSON representation
Write python code in Solid.js using Pyscript.
- Host: GitHub
- URL: https://github.com/sushiwaumai/pyscript-solid
- Owner: SushiWaUmai
- License: mit
- Created: 2022-05-29T15:44:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T21:09:42.000Z (over 2 years ago)
- Last Synced: 2024-08-08T19:57:10.156Z (3 months ago)
- Topics: framework, javascript, jsx, library, pyscript, python, solid, solidjs, typescript
- Language: TypeScript
- Homepage:
- Size: 302 KB
- Stars: 13
- 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
[![npm](https://img.shields.io/npm/v/pyscript-solid?style=flat-square)](https://www.npmjs.com/package/pyscript-solid)
[![License](https://shields.io/github/license/SushiWaUmai/pyscript-solid?style=flat-square)](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).