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

Uploaded Source

Built Distribution

egtaonlineapi-0.3.2-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6aa7d369102c075cd5891f13128b7585da281dd15a5636d6c1437911fd676e5d
MD5 f42e5622a6ab6962dcb29115b1c9a465
BLAKE2b-256 a65d7f47aeff47b9643d79ccff523d57bb05a1d6848e605b904bcc15c3ed1f26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f90dd60c169eeb96f284c2c2d44c36172f4d734f9437fde58502388e4054d6b0
MD5 ca1692ef43873099e436e9e4a1070b25
BLAKE2b-256 2ca81f635543e82642cc1ed394aba7398270a5d8a8f9af2b8fa2efcce3375743

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