CLI tools for working with SEAF assessment data: YAML/XLS conversion, standards surveys, remote NSI sources.
Project description
seaf-helper-tools
CLI-инструменты для работы с данными SEAF: конвертация анкет объектов оценки между форматами YAML и XLS, поддержка удалённых источников НСИ через JSONata API.
Установка
pip install seaf-helper-tools
Команды
| Команда | Описание |
|---|---|
survey-standards-yaml2xls |
Конвертировать YAML-анкету объекта оценки в XLS |
survey-standards-xls2yaml |
Конвертировать XLS-анкету обратно в YAML |
Примеры
# Сгенерировать XLS из YAML
seaf-helper-tools survey-standards-yaml2xls input.yaml output.xlsx --template template.xlsx
# Конвертировать XLS обратно в YAML
seaf-helper-tools survey-standards-xls2yaml input.xlsx output.yaml
# С конфигурационным файлом (для подключения к API)
seaf-helper-tools --config config.yaml survey-standards-yaml2xls input.yaml output.xlsx
Конфигурация
Для подключения к удалённому API NSI создайте config.yaml по образцу config.example.yaml:
api:
url: https://your-seaf-instance/api
cert: /path/to/client.crt
key: /path/to/client.key
Разработка
git clone https://gitverse.ru/alex314/helper_commands
cd seaf-helper-tools
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -v
ruff check .
mypy src/
Лицензия
GPL-3.0 — см. LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seaf_helper_tools-0.1.0.tar.gz.
File metadata
- Download URL: seaf_helper_tools-0.1.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
297f857acb0e81d3fcb849506e4a59b2e91ecd73b4a44f92a5a38078d760621d
|
|
| MD5 |
ed4aca214f851ef53554f3b9b347e196
|
|
| BLAKE2b-256 |
706f9c46f20e53614a10852b2a5a7767fdf82321bde197a93a7412001b7b42c6
|
File details
Details for the file seaf_helper_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: seaf_helper_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6f7374c8d83cb0ff67d29020c8404b03d8470c2584cf78de166e3e8d8ab0f5
|
|
| MD5 |
e6ab633100d9ceaaf0915a85c53b14d3
|
|
| BLAKE2b-256 |
f7cd36d9677fa987dd26199c09a5b2e530d7873d73c5eff036ccc6849a79cf7b
|