egtaonlineapi-0.8.7
توضیحات
Various APIs for egtaonline
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | egtaonlineapi-0.8.7 |
| نام | egtaonlineapi |
| نسخه کتابخانه | 0.8.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Strategic Reasoning Group |
| ایمیل نویسنده | strategic.reasoning.group@umich.edu |
| آدرس صفحه اصلی | https://github.com/egtaonline/egtaonline-api.git |
| آدرس اینترنتی | https://pypi.org/project/egtaonlineapi/ |
| مجوز | Apache 2.0 |
EGTAOnline Api
==============
[](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.
نیازمندی
| مقدار | نام |
|---|---|
| ~=0.3 | inflection |
| ~=2.6 | jsonschema |
| ~=4.2 | lxml |
| ~=1.4 | requests-mock |
| ~=2.18 | requests |
| ~=0.8 | tabulate |
| ~=6.3) | ipython |
| ~=0.1) | pylint-quotes |
| ~=1.8) | pylint |
| ~=2.0) | mock |
| ~=0.8) | pytest-asyncio |
| ~=2.5) | pytest-cov |
| ~=0.6) | pytest-env |
| ~=1.18) | pytest-xdist |
| ~=3.2) | pytest |
| ~=1.7) | sphinx |
| ~=1.9) | twine |
| ~=0.30) | wheel |
نحوه نصب
نصب پکیج whl egtaonlineapi-0.8.7:
pip install egtaonlineapi-0.8.7.whl
نصب پکیج tar.gz egtaonlineapi-0.8.7:
pip install egtaonlineapi-0.8.7.tar.gz