Skip to main content

A small wrapper library to help test systems using STAR

Reason this release was yanked:

A bug in the CI pipeline caused the wrong version number to be used

Project description

MOdel Test Harness (Moth)

Simple way to interrogate your AI model from a separate testing application

Quickstart

moth server <folder path>

moth client

Simplest possible model client

from moth import Moth
from moth.message import ImagePromptMsg, PromptResultMsg

moth = Moth("my-ai")

@moth.prompt
def on_prompt(prompt: ImagePromptMsg):
    # TODO: Do smart AI here
    return PromptResultMsg(class_name="cat") # Most pictures are cat pictures 

moth.run()

Project details


Download files

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

Source Distribution

starmoth-0.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

starmoth-0.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file starmoth-0.0.0.tar.gz.

File metadata

  • Download URL: starmoth-0.0.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for starmoth-0.0.0.tar.gz
Algorithm Hash digest
SHA256 5d30157b9c84cfb58d83915ae68e12acc08a67780e8db9fc0e9c8f70291a33d9
MD5 59462910d12b63c03271c451f48e67c0
BLAKE2b-256 66b586eb3fa607fad71b031321c0da912efed0bb1853eaef845f6af7ed887155

See more details on using hashes here.

Provenance

File details

Details for the file starmoth-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: starmoth-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for starmoth-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a986139d4bf5a659d203d3e32b415236d191c7a4d1c3eebd9c2db27757d580
MD5 85ba52f4a3fe604864ad4b629715b8b6
BLAKE2b-256 849368982c700eb6c1d1be7b619b8d688b6f0e021223bed4db71ea6102262e4c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page