Skip to main content

opyratorfront

Generate opyrator UIs and webservices and docker containers from python functions

Deprecated. The implementation moved to front in 2022: use front.py2pydantic. opyratorfront.py2pydantic still works as a re-export and raises a DeprecationWarning on import.

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:

image

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

And more!

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opyratorfront 0.1.4
File Size Uploaded Provenance Actions
opyratorfront-0.1.4.tar.gz 11.3 kB Without provenance Details for opyratorfront-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opyratorfront 0.1.4
File Interpreter ABI Platform Actions
opyratorfront-0.1.4-py3-none-any.whl Python 3 none any Details for opyratorfront-0.1.4-py3-none-any.whl

Total release size: 18.9 kB

Release files / opyratorfront-0.1.4.tar.gz

Download URL opyratorfront-0.1.4.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
21af9f99a6a2675f79d414a2b44a12cc06cf69a9b355428f5741fa7b024ac947
BLAKE2b-256 checksum
How to use checksums
20f06f2c7f6c3106f6fb7c3de2a8cfa0a739f84b222a8d011dc14aed96b7baad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.4-py3-none-any.whl

Download URL opyratorfront-0.1.4-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5736dfc3b26929502a0110a4d736a9849316740aa18f43d1c829075f66b29c1
BLAKE2b-256 checksum
How to use checksums
f618cb8da6992cb49fa58025b9dba9110ca3c6c5e2b58f6a322de267b8fd3a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for opyratorfront 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page