compdevkit-1.6.1
توضیحات
Developer tools for compmodels.org.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | compdevkit-1.6.1 |
| نام | compdevkit |
| نسخه کتابخانه | 1.6.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hank Doupe |
| ایمیل نویسنده | henrymdoupe@gmail.com |
| آدرس صفحه اصلی | https://github.com/comp-org/COMP-Developer-Toolkit |
| آدرس اینترنتی | https://pypi.org/project/compdevkit/ |
| مجوز | - |
# Comp-Developer-Toolkit
`compdevkit` tests your model's functions against the [COMP criteria](https://docs.compmodels.org/publish/functions/). If your functions pass the `compdevkit` tests, then you can be reasonably sure that the functions will work on COMPmodels.org.
COMP Developer toolkit also provides a helper command for retrieving your [COMP API](https://docs.compmodels.org/api/guide/) token.
## Install `compdevkit`
```bash
pip install compdevkit
```
## Set up the `comp` directory
```bash
$ cdk-init
```
## Test your functions
```python
from compdevkit import FunctionsTest
import matchups
def test_get_parameters():
ta = FunctionsTest(
get_inputs=matchups.get_inputs,
validate_inputs=matchups.validate_inputs,
run_model=matchups.get_matchup,
ok_adjustment={"matchup": {"pitcher": [{"value": "Max Scherzer"}]}},
bad_adjustment={"matchup": {"pitcher": [{"value": "Not a pitcher"}]}}
)
ta.test()
```
## Get your [COMP API](https://docs.compmodels.org/api/guide/) token
```bash
$ cdk-token --username myuser --password mypass
Token: your-token-here
```
## Run the tests
```bash
py.test compconfig -v
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.7.0 | paramtools |
| - | boto3 |
| >=1.3.1 | s3like |
| - | requests |
نحوه نصب
نصب پکیج whl compdevkit-1.6.1:
pip install compdevkit-1.6.1.whl
نصب پکیج tar.gz compdevkit-1.6.1:
pip install compdevkit-1.6.1.tar.gz