Skip to main content

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/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seaf_helper_tools-0.7.0.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seaf_helper_tools-0.7.0-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

Details for the file seaf_helper_tools-0.7.0.tar.gz.

File metadata

  • Download URL: seaf_helper_tools-0.7.0.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for seaf_helper_tools-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2cc3fdaecc52cfcb52e382ace4aeae11a9fe3242c3e0df6c78943a33dd5d7aa9
MD5 7e488de3bb2d28b269082892c0f97304
BLAKE2b-256 600cb8f76ea9b5ec17bc86b31ba227f8c80c5dc13f943031497f07758f9731cd

See more details on using hashes here.

File details

Details for the file seaf_helper_tools-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for seaf_helper_tools-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3cf8ab2d37b2f522fc17d88cb3a9b5460d46d1c9d58503a91fdcac5d69506e6
MD5 40b581f3fafae648a67884c567a519a0
BLAKE2b-256 10050f19556210e5d9a92a23f269b17ec348a4882475369da6ce963fa5c98c78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page