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.11.2.tar.gz (83.0 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.11.2-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seaf_helper_tools-0.11.2.tar.gz
  • Upload date:
  • Size: 83.0 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.11.2.tar.gz
Algorithm Hash digest
SHA256 38316df2cfb559402340e5e57c9f72ca6f250d25197307ae7ca891e77fc88b4f
MD5 eba465a8e401bfde17ff444815543542
BLAKE2b-256 1a98932bf4bc3c9f00e0d73151cb2fe25520e7aef3b902d7726bf605b1242eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for seaf_helper_tools-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fab59e576a3dea718e17c35ff4db3d14b36863ed5c16644aec668c2b5131184
MD5 5d4b36f503c9721b937961ec1c76d143
BLAKE2b-256 2adc13554fb2debbd3c2ea4af46dc5628ff60f89b4aaa438b3743f88586cba4e

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