opik-genui
Authoring data for Opik views. A view is HTML, CSS and script written by a model and rendered in a sandboxed iframe by the opik-genui npm package. This package gives a Python author the prompt to write a view and the constants to check it against.
pip install opik-genui
It has no dependencies. The version of this package is the Opik release it shipped with, and it always matches the npm package of the same version.
Usage
import opik_genui
system_prompt = opik_genui.prompt("widget")
view = {
"type": "html",
"engine_version": opik_genui.ENGINE_VERSION,
"html": html,
"inputs": {"rows": {"kind": "query", "query_id": query_id}},
"libraries": ["vega"],
}
assert len(html) <= opik_genui.MAX_HTML_LENGTH
| Name | What it is |
|---|---|
prompt(area) |
The authoring prompt for an area. |
AREAS |
The places a view can be shown. |
LIBRARIES |
The libraries a view may declare. |
ENGINE_VERSION |
The HTML contract version a view written with this prompt targets. |
MAX_HTML_LENGTH |
The size cap the Opik backend enforces on save. |
TOKENS |
The --ov- token values for light and dark. |
__version__ |
The package version. |
Licence
Apache-2.0.
Metadata
Release files for opik-genui 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opik_genui-2.3.1.tar.gz | 12.2 kB | Without provenance | Details for opik_genui-2.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opik_genui-2.3.1-py3-none-any.whl | Python 3 | none | any | Details for opik_genui-2.3.1-py3-none-any.whl |
Total release size: 24.4 kB
Release files / opik_genui-2.3.1.tar.gz
| Download URL | opik_genui-2.3.1.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72d0f25377e8c74702a7e2d4d7175337d1eb01fc8e5b432a390c12d1de1c1ace
|
|
BLAKE2b-256 checksum How to use checksums |
f2d470fa20caf8d1997a37174b803dc7233fe31cadeefea4a3feac2c461f39e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / opik_genui-2.3.1-py3-none-any.whl
| Download URL | opik_genui-2.3.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d051c4d4e9858d8351bc67e8b580122aa497c998434b5988bf6799a23ba72af
|
|
BLAKE2b-256 checksum How to use checksums |
616181c915d5cb849df7c8f9a8db179dc72406687676c61bfc9656f618bdbc80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for opik-genui 2.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.