patches for promplate-core for running in pyodide runtime
Project description
promplate-pyodide
Run your promplate
project in the browser with pyodide!
Usage
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file promplate_pyodide-0.0.3.3.tar.gz
.
File metadata
- Download URL: promplate_pyodide-0.0.3.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.15.4 CPython/3.12.3 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92c9951475df5ac3f596ddfb2e1dfc3082eda35f6cf5f98729898e209d7b54fd |
|
MD5 | b08b52465372d2f8c4bae35fc6ce2416 |
|
BLAKE2b-256 | 45ef2504bcfb8585bb2ae5347723f32464b81a1ff792bac5cf9462b0800bdb84 |
File details
Details for the file promplate_pyodide-0.0.3.3-py3-none-any.whl
.
File metadata
- Download URL: promplate_pyodide-0.0.3.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.15.4 CPython/3.12.3 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9c461aff8c2c1a6b50d47d507e9b6075029cf3e90834f421a4f5af423516ad0 |
|
MD5 | 937c2d0e63e0651283fe362e737ea99a |
|
BLAKE2b-256 | 58003b6628d34fe73d996151804802caab0034f80ac4c41d72ab206580d4276f |