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

Uploaded Source

Built Distribution

egtaonlineapi-0.5.2-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.5.2.tar.gz
Algorithm Hash digest
SHA256 9b8e788d27051d146ec9fdaeb8c32740a51bdebbebd4b6092aa00dd78bc7b6d0
MD5 c106360fc713e8388115e007c460e0a5
BLAKE2b-256 78cc816c6cd51b493fe0869b56291b524b8286adf009f5eba69fc00e53b7d6bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for egtaonlineapi-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd044051e627b9e0b153a198711ada8c0f0821df7bce0db87c70542e30985759
MD5 42bd4494de0171042545ef764216c4c7
BLAKE2b-256 ebb71b295e0cfc48d3a3e7e2749cfe79e81c099ac9d67ce6c55c6864077f980d

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