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/seaf_helper_tools
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.
Metadata
Release files for seaf-helper-tools 0.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seaf_helper_tools-0.14.0.tar.gz | 83.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seaf_helper_tools-0.14.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 158.8 kB
Release files / seaf_helper_tools-0.14.0.tar.gz
| Download URL | seaf_helper_tools-0.14.0.tar.gz |
|---|---|
| Size | 83.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb0747fc95d7ad41441ab13a95aefb2db356dca42f07dcab7c44c06a407084c
|
|
BLAKE2b-256 checksum How to use checksums |
b9686dbde11fd4c6fa7c92def417decc0d0f22f8698416cfb8facddd28e4728c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / seaf_helper_tools-0.14.0-py3-none-any.whl
| Download URL | seaf_helper_tools-0.14.0-py3-none-any.whl |
|---|---|
| Size | 75.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c983f70b2e697b975060a4e686f8daecacd74ed18ab031b5bc07ee592545cdd
|
|
BLAKE2b-256 checksum How to use checksums |
621409309c590c34b5b965a71a14b8fdc5a459aa9e2dee6f7a138c8e8cbf23f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|