OptHub Scorer
Project description
OptHub Scorer
OptHub Scorer is a worker program that scores a solution submitted to OptHub.
Requirements
- Python >=3.6
- Docker >=1.12
See also requirements.txt for dependent python packages.
Installation
$ pip install opthub-scorer
Usage
How to start a scorer runner
Login the docker registry where the problem image is stored.
$ docker login <registry>
Start a scorer.
$ opthub-scorer
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-scorer.yml | Configuration file |
How to make a scorer
- Write an indicator 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-scorer-0.8.1.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file opthub-scorer-0.8.1.tar.gz
.
File metadata
- Download URL: opthub-scorer-0.8.1.tar.gz
- Upload date:
- Size: 8.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 | ffa78319f2cd876342719f993af1dc2869f4006cb921e2ee2da73c92ceb866fd |
|
MD5 | f2be5016bcdd74f286d10a06b16830d5 |
|
BLAKE2b-256 | 757925d072a68823addfa58422e8d86822a4c5d8b4d834aca8450407fba8845c |
File details
Details for the file opthub_scorer-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: opthub_scorer-0.8.1-py3-none-any.whl
- Upload date:
- Size: 8.7 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 | 7c2ccfc99bf1fa75eeed686f32753613a7815ededea6b7efb7d393bd1032def7 |
|
MD5 | e9544d3cddbf2e64fa1219d650c871ff |
|
BLAKE2b-256 | b112d6d102ec685b09cd957bbdf158adf444a4abcadd2946d8c2ddf108ebb0a0 |