Skip to main content

OptHub Evaluator

Project description

OptHub Evaluator

OptHub Evaluator is a worker program that evaluates a solution submitted to OptHub.

Requirements

  • Python >=3.6
  • Docker >=1.12

See also requirements.txt for dependent python packages.

Installation

$ pip install opthub-evaluator

Usage

How to start an evaluator

Login the docker registry where the problem image is stored.

$ docker login <registry>

Start an evaluator.

$ opthub-evaluator

Options

Parameter Type Default Description
url path https://opthub-api.herokuapp.com/v1/graphql URL to OptHub
apikey str ApiKey
interval int 2 Polling interval
verify/no-verify bool True Verify SSL certificate
retries int 3 Retries to establish HTTPS connection
timeout int 600 Timeout to process a query
rm Remove containers after exit
quiet Be quieter
verbose Be more verbose
config path opthub-evaluator.yml Configuration file

How to make an problem image

  1. Write a problem program in your favorite language.
  2. Dockerize it.
  3. Push the docker image to DockerHub or somewhere else accessible from OptHub. For this purpose, OptHub hosts its own docker private registry.
  4. Register the image tag to OptHub.

See also example.

Author

Naoki Hamada (hmkz@s101.xrea.com)

License

MIT

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

opthub-evaluator-0.6.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

opthub_evaluator-0.6.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file opthub-evaluator-0.6.0.tar.gz.

File metadata

  • Download URL: opthub-evaluator-0.6.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for opthub-evaluator-0.6.0.tar.gz
Algorithm Hash digest
SHA256 6b53c9869e11415cd517482133ee25357b73193c47d7ef225a413a940f27882f
MD5 f6a4fd6d0c1df5893581f126a852ddd7
BLAKE2b-256 77ea04db78045b16747c2a70c55f6afa32004b2f353568d6264100e62c64d1b2

See more details on using hashes here.

File details

Details for the file opthub_evaluator-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opthub_evaluator-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e834b7fc64f294d8648a5c7b258fa2925cf9486bde0409bd93b05f9231e118b
MD5 01587e1b35ca29fa6a7ca741d785e31d
BLAKE2b-256 ea52f09c059aaee6b345d5c567e4864143c78f85e6d841a91d99eaaa04f13051

See more details on using hashes here.

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