Skip to main content

A small wrapper library to help test systems using STAR

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.2.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starmoth-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 b855c1cb92d07db2ee419ba7b34330968d95791a79d214eb2f3e6831d51be62f
MD5 c3c20b55c04f3701a15610bda0ad1a36
BLAKE2b-256 77cee4575e764118ca3a49de675848c38e35dcde4fed829c57ffc9bfc32a60c3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: starmoth-0.2.1-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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e14351cc587c4966f6f713e9397d062d840299b7d17f1295404e24ee2731040
MD5 e3b34831c7ee007e8cbd4fa0b0bbda4d
BLAKE2b-256 d34571a04512d3ae5d87a5ccfb5305eda3f56a4d1abcd481f8b536237ac8c414

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