Skip to main content

Various APIs for egtaonline

Project description

[![Build](https://img.shields.io/travis/egtaonline/egtaonline-api.svg?style=flat-square)](https://travis-ci.org/egtaonline/egtaonline-api) [![Coverage](https://img.shields.io/coveralls/egtaonline/egtaonline-api.svg?style=flat-square)](https://coveralls.io/github/egtaonline/egtaonline-api) [![Documentation](https://readthedocs.org/projects/egtaonline-api/badge/?version=latest&style=flat-square)](http://egtaonline-api.readthedocs.io/en/latest/?badge=latest)

Command line and python access to egtaonline.

Install

` pip install egtaonlineapi `

Usage

  • The command line entry point is eo. eo –help will list all the options available.

  • The python entry point is egtaonline.api. This has slightly more functionality than the command line api.

  • There is also a mock api that egtaonline.mockapi that functions almost identically, but is in memory, has no existing data, and generates payoffs randomly.

Cookbook

These are useful scripts that illustrate what can be done with the api.

  • Monitor a scheduler and report when it’s done:

    ` while ! eo sched <sched-id> -r | jq -e '.scheduling_requirements | map(.current_count >= .requirement) | all' > /dev/null; do sleep <sleep-interval>; done; <notify-script> `

    This will poll <sched-id> every <sleep-interval> seconds and run <notify-script> when the scheduler is done.

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

egtaonlineapi-0.2.4.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

egtaonlineapi-0.2.4-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file egtaonlineapi-0.2.4.tar.gz.

File metadata

File hashes

Hashes for egtaonlineapi-0.2.4.tar.gz
Algorithm Hash digest
SHA256 800fe0921b3233e345e0afb61c00be212c30c006d9c48c4d1e25d8552543bff6
MD5 76f19535eaa0899d381bba5692f39edf
BLAKE2b-256 f1a883960aeda8ad1b37026e1597637964c1ebb99371747e83b0a0b66211b321

See more details on using hashes here.

File details

Details for the file egtaonlineapi-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for egtaonlineapi-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e52e78129f35fe1434c99bea08a6d87964fc0e967c01e9116b54fcee010ee12f
MD5 63695209c09cfd318e90650308fb6cce
BLAKE2b-256 d0a7e01a7a3a5d25acb6cbea503e0493c670ddb9e2741e1b9a4d1421d681a580

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