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.4.0.tar.gz
.
File metadata
- Download URL: egtaonlineapi-0.4.0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed6cca65aa2a283ab5630c8d2b76f6048fb924934b8f70b271968fbe6627a70 |
|
MD5 | 7781da92b712118562989cdff86861ab |
|
BLAKE2b-256 | af87a4c4a1a2f313c9ad8f79989e3edb35add74e5e0ec97b73e6bbb7e18378e2 |
File details
Details for the file egtaonlineapi-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: egtaonlineapi-0.4.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96dc685a787cf60703ae77b95b6318eda880f3ccd346f463a22f4353aa34cc13 |
|
MD5 | 4bea2447419d54f8b1aa4f48b71add82 |
|
BLAKE2b-256 | c53dd6f54169bcdc8e298ce0eca97e2a0b1da9dd85bdac245652b1cda25d6c09 |