Various APIs for egtaonline
Project description
[](https://travis-ci.org/egtaonline/egtaonline-api) [](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
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size egtaonlineapi-0.8.7-py3-none-any.whl (26.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size egtaonlineapi-0.8.7.tar.gz (33.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for egtaonlineapi-0.8.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae85da9fc032168533b4076bf94036bbe99acf5bdb99c32221813d40a09bc790 |
|
MD5 | 07b55419fbd16d60f2251a375df963e0 |
|
BLAKE2-256 | 5ef26fead50e7de8951239d7e182c02290ae6aaacf4152100b44e4a9c26cd982 |