Skip to main content

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:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opyratorfront-0.1.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opyratorfront-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file opyratorfront-0.1.2.tar.gz.

File metadata

  • Download URL: opyratorfront-0.1.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for opyratorfront-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9b2616eceb767ff97dc74a7918c148ccc63e23607fa63514fbd4baf0aca622db
MD5 e2641a5565f746f2c1fd0b48d3a67e3f
BLAKE2b-256 532d701a590a5f5afbe54191d1d39a1efacb012a4c7e5a25dcb7c1a6e019a796

See more details on using hashes here.

File details

Details for the file opyratorfront-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: opyratorfront-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for opyratorfront-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb264e482e0d83a73f78fe60953c62e83ae310dce3b5c769802bb8b19fbd8ae3
MD5 c25b2c35f5a52ba5c0698c5240e13f1f
BLAKE2b-256 b6b3a25289ae6c93ca22684a1a89045bee790bd6441faf13f18a0c1b749b1294

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

1 file

0.1.0

1 file

0.0.2

2 files

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