Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #64

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
[![CI](https://github.com/emscripten-forge/pyjs/actions/workflows/main.yml/badge.svg)](https://github.com/emscripten-forge/pyjs/actions/workflows/main.yml)
[![CI](https://img.shields.io/badge/pyjs-docs-yellow)](https://emscripten-forge.github.io/pyjs/)



## What is pyjs

pyjs is modern [pybind11](https://github.com/pybind/pybind11) + emscripten [Embind](https://emscripten.org/docs/porting/connecting_cpp_and_javascript/embind.html) based
Python <-> JavaScript foreign function interface (FFI) for wasm/emscripten compiled Python.

The API is loosly based on the FFI of [pyodide](https://pyodide.org/en/stable/usage/type-conversions.html).

## Full Documentation
See the [documentation](https://emscripten-forge.github.io/pyjs/) for a full documentation.

## Try it out
To try it out, you can use the [playground](https://emscripten-forge.github.io/pyjs/lite/).

## Quickstart

Expand Down Expand Up @@ -43,10 +46,4 @@ const py_list = pyjs.eval("[i for i in range(10)]")

/// access
console.log(py_list.get(0)) // same as py_list[0] on the python side
```

## Full Documentation
See the [documentation](https://emscripten-forge.github.io/pyjs/) for a full documentation.

## Try it out
To try it out, you can use the [playground](https://emscripten-forge.github.io/pyjs/lite/).
```
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ console.log(py_list.get(0)) // same as py_list[0] on the python side
## Try it out

To try it out, you can use [jupyterlite](../lite),
the [JavaScript REPL](../try-pyjs-from-javaScript) or the [Python REPL](../try-pyjs-from-python).
the [JavaScript REPL](try_from_js) or the [Python REPL](try_from_py).
Loading