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 server at egtaonline.mockserver that handles all requests without actually modifying egta.

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

Uploaded Source

Built Distribution

egtaonlineapi-0.5.3-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.5.3.tar.gz
Algorithm Hash digest
SHA256 41424a856c618d2e8dff52015c116b8e7e9ffa2898cd70a2c08916d52cb29da8
MD5 204eda245fd6d0f0ab1912e704d89336
BLAKE2b-256 d1b6051b0f24a844400bcd1e29b81508557d1b55c7e08b8624fa1213548342e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 171a12c072b05c34f6ee9dddaa288a96d383f98b61e8aa40e9e0fad6132173db
MD5 aaaf37c73a435a07411b1770b67a3569
BLAKE2b-256 d283a92e176e929de741e324089fddc2d389e513a3ddfc3096001e4c73767bf2

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