Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).