opyratorfront
Generate opyrator UIs and webservices and docker containers from python functions
To install: pip install opyratorfront
What it's about
opyrator
(From the readme of opyrator):
opyrator allows us to write code like this:
from pydantic import BaseModel
class Input(BaseModel):
message: str
class Output(BaseModel):
message: str
def hello_world(input: Input) -> Output:
"""Returns the `message` of the input data."""
return Output(message=input.message)
Putting this in a file named my_opyrator.py and running
opyrator launch-ui my_opyrator:hello_world
from the command-line, we can get a web UI that looks like this:
Not only that, we can also get the underlying webservice, along with an openAPI specification of the latter, by doing this:
opyrator launch-api my_opyrator:hello_world
opyratorfront
We have tools (namely py2dash and streamlitfront ) to get from a set of functions to a web UI.
Now streamlitfront, like opyrator, uses streamlit to make a UI from
python, but streamlit doesn't provide a way to remove the UI concern and
only use the underlying web-service independently.
(Though there's interest in this.)
opyrator not only offers that possibility, but also
many other desirable "dispatches".
That said, opyrator doesn't come with all the boilerplate minimized
multi-function get-from-python-functions-to-a-ui-wrapper stuff we'd want.
So we made opyratorfront to try to get the best of both worlds.
Metadata
Release files for opyratorfront 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opyratorfront-0.1.2.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opyratorfront-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / opyratorfront-0.1.2.tar.gz
| Download URL | opyratorfront-0.1.2.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b2616eceb767ff97dc74a7918c148ccc63e23607fa63514fbd4baf0aca622db
|
|
BLAKE2b-256 checksum How to use checksums |
532d701a590a5f5afbe54191d1d39a1efacb012a4c7e5a25dcb7c1a6e019a796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / opyratorfront-0.1.2-py3-none-any.whl
| Download URL | opyratorfront-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb264e482e0d83a73f78fe60953c62e83ae310dce3b5c769802bb8b19fbd8ae3
|
|
BLAKE2b-256 checksum How to use checksums |
b6b3a25289ae6c93ca22684a1a89045bee790bd6441faf13f18a0c1b749b1294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|