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)

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.4.1.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

egtaonlineapi-0.4.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.4.1.tar.gz
Algorithm Hash digest
SHA256 47997e4bde10b3fc55e4786d0f6a9506b400fb4e9c9f5346034628da17daa40d
MD5 3bb98265c070542c3002c95c83c95d8b
BLAKE2b-256 21c92e6dbfa7eb5876dda7fea3cc60caf846660dd77c581bb7ab6b8696aaa7a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60b9387391ea234455b7cfc92e67efc8af320c0a646d2d5502ea6d4abca83c7e
MD5 c755500feff2a6681b59f1fa995920bb
BLAKE2b-256 8f3c3c2d12afe0664a7f888d7d62d81edfba3815b99bc5928c41080f15e2b47f

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