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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file promplate_pyodide-0.0.4.tar.gz.
File metadata
- Download URL: promplate_pyodide-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5f52746d42a548d458fb8685bd4c70a6afe80e9c772a00f238b2e88a122668
|
|
| MD5 |
48fb207465ad3d69ef627afe22f1e227
|
|
| BLAKE2b-256 |
64e74dd03c322e3ddbf3383a67be178e3f968fa68747a1ededc583ecc18ba20e
|
Provenance
The following attestation bundles were made for promplate_pyodide-0.0.4.tar.gz:
Publisher:
ci.yml on promplate/pyodide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promplate_pyodide-0.0.4.tar.gz -
Subject digest:
4a5f52746d42a548d458fb8685bd4c70a6afe80e9c772a00f238b2e88a122668 - Sigstore transparency entry: 192889026
- Sigstore integration time:
-
Permalink:
promplate/pyodide@95a3369b669c2950bc335dd80517447b3ee9aa82 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/promplate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95a3369b669c2950bc335dd80517447b3ee9aa82 -
Trigger Event:
push
-
Statement type:
File details
Details for the file promplate_pyodide-0.0.4-py3-none-any.whl.
File metadata
- Download URL: promplate_pyodide-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d6039e71863c050b0c0be842b5927170874c34113c81f79f7d6aa6ff6eecb3a
|
|
| MD5 |
a266ff4251c1f971a3f75f884ca44a6b
|
|
| BLAKE2b-256 |
f2622e0bd45facfe6ae2d2c45bfd2c5a322fc27f36438541e15ac7e9aeb79d27
|
Provenance
The following attestation bundles were made for promplate_pyodide-0.0.4-py3-none-any.whl:
Publisher:
ci.yml on promplate/pyodide
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promplate_pyodide-0.0.4-py3-none-any.whl -
Subject digest:
0d6039e71863c050b0c0be842b5927170874c34113c81f79f7d6aa6ff6eecb3a - Sigstore transparency entry: 192889027
- Sigstore integration time:
-
Permalink:
promplate/pyodide@95a3369b669c2950bc335dd80517447b3ee9aa82 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/promplate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95a3369b669c2950bc335dd80517447b3ee9aa82 -
Trigger Event:
push
-
Statement type: