dw-content-tools-0.6.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dw-content-tools-0.6.0 |
| نام | dw-content-tools |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Martin Zugnoni |
| ایمیل نویسنده | mzugnoni@datawars.io |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dw-content-tools/ |
| مجوز | - |
# Content CLI Tools
## Installation
```
$ pip3 install dw-content-tools
```
## Module Repository Validator
```
Validates that a module repo structure and content is valid, based
on the following rules:
* metadata.yml exists
* metadata.yml is valid
* validate JSON schema
* docker-compose.yml exists
* docker-compose.yml is valid
* validate JSON schema
* english.md exists
* validating english.md:
* pages:
* unique IDs
* all pages contain a valid ID
* all pages have a name
* all images referenced in md exist as static files
* activities:
* all activities have an unique `id`
* all activities have `type` defined
* input:
* has required `correct-answer` tag
* multiple-choice:
* has required `answer` (many) tags
* at least one answer is marked as `is-correct`
* when more than one answer is correct, `widget` has to be `checkbox`
* code:
* `template` and `device` attrs are defined
* has required `validation-code` tag
```
نیازمندی
| مقدار | نام |
|---|---|
| >=8.1.3,<9.0.0 | click |
| >=6.0,<7.0 | pyyaml |
| >=4.11.1,<5.0.0 | beautifulsoup4 |
| >=4.17.3,<5.0.0 | jsonschema |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl dw-content-tools-0.6.0:
pip install dw-content-tools-0.6.0.whl
نصب پکیج tar.gz dw-content-tools-0.6.0:
pip install dw-content-tools-0.6.0.tar.gz