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
Built Distribution
File details
Details for the file opthub-evaluator-0.7.0.tar.gz
.
File metadata
- Download URL: opthub-evaluator-0.7.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89d7d1198aa6cd678cc014e8c02eab312abe4b0d371d35ba81f3b9f7f7db4e3 |
|
MD5 | 84e55e072b6abb03e27895441afa7ee7 |
|
BLAKE2b-256 | 5e568ae33459a5fa36b4732f091a8cb4f003a300b3b8fbd89fbd6f69f53a5192 |
File details
Details for the file opthub_evaluator-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: opthub_evaluator-0.7.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac8a485beb8e3ffe7fb0271da20a8ccbd9647f75571b6da7ff4452cd9df86e9 |
|
MD5 | 26fa32bfa1587a0b24a918718fa81952 |
|
BLAKE2b-256 | c077145ba4741ecf4d1c853f6d151b8ac8ff6b2e6f34e8b0b68b72f200732897 |