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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file egtaonlineapi-0.2.5.tar.gz
.
File metadata
- Download URL: egtaonlineapi-0.2.5.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55aef7f439741f84eed93b2604dfd24eaae3652166f58b06fb9a8b1b17dc0ffe |
|
MD5 | 8304cf656c7910b40ed5b29e5653ab49 |
|
BLAKE2b-256 | b420eaa7a68a0699f479aa1f903270f45d52e3c21ad5464ab148589452a23f0b |
File details
Details for the file egtaonlineapi-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: egtaonlineapi-0.2.5-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5741d5692b85bb79de62904e9496b590a113bbd1f1e6cf64309eebd6b6975367 |
|
MD5 | b9cfcbe7e51248ffe1f88f0849330442 |
|
BLAKE2b-256 | 6282bf04f932f4a503d0f9a9e5614c339b127c4b3e45ede3fe69cb97e1be93d0 |