Metadata-Version: 2.1
Name: promplate-pyodide
Version: 0.0.3a5
Summary: patches for promplate-core for running in pyodide runtime
Author-Email: Muspi Merol <me@promplate.dev>
License: MIT
Requires-Python: >=3.10
Requires-Dist: promplate<0.3.4,>=0.3.3.4
Description-Content-Type: text/markdown

# promplate-pyodide

Run your [`promplate`](https://promplate.dev/) project in the browser with [pyodide](https://pyodide.org/)!

## Usage

```py
from micropip import install  # in pyodide runtime
await install("promplate-pyodide")

from promplate_pyodide import patch_all
patch_all()
```

You can register the `openai` module as the JavaScript SDK in the JavaScript scope because the Python SDK v1.x doesn't support pyodide.

It will remove sync APIs of `promplate.llm.openai` because the JavaScript OpenAI SDK is async-only.

---

Of course you can use OpenAI Python SDK v0.x in pyodide, but it is not recommended.
