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
- Write a problem program in your favorite language.
- Dockerize it.
- Push the docker image to DockerHub or somewhere else accessible from OptHub. For this purpose, OptHub hosts its own docker private registry.
- Register the image tag to OptHub.
See also example.
Author
Naoki Hamada (hmkz@s101.xrea.com)
License
MIT
Project details
Release history Release notifications | RSS feed
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.7.8.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for opthub_evaluator-0.7.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e84293d061bf632720118b9c0438a3d61460b222bb1d1e3218b9eacbeb78c6 |
|
MD5 | 24a7b64793a5a18f2a0445f2ea3625ea |
|
BLAKE2b-256 | f8c0bb42e7b4998a392daa3d404a68a4107b5683f20485a69f222d582c71b639 |