Skip to main content

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

MCP-инструменты

MCP-сервер даёт агенту доступ к API портала (нужны --api-host, --api-cert-path).

Инструмент Описание
run_jsonata_query JSONata-запрос к манифесту или датасету
describe_query_result Структура и образцы результата запроса
inspect_entity_schema Схема и примеры записей для типов
find_entity_relation_paths Пути связей между двумя типами
search_entity_type_ids Поиск ID типов сущностей по фразам
find_jsonata_examples Примеры запросов из cookbook
full_text_search Полнотекстовый поиск объектов (серверный поиск портала, образ от 2026-10)
get_search_filters Типы, доступные для поиска, и фильтры полей типа
call_api_endpoint GET произвольного endpoint API

Конфигурация

Для подключения к удалённому 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.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seaf-helper-tools 0.17.0
File Size Uploaded Provenance Actions
seaf_helper_tools-0.17.0.tar.gz 88.9 kB Without provenance Details for seaf_helper_tools-0.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seaf-helper-tools 0.17.0
File Interpreter ABI Platform Actions
seaf_helper_tools-0.17.0-py3-none-any.whl Python 3 none any Details for seaf_helper_tools-0.17.0-py3-none-any.whl

Total release size: 168.3 kB

Release files / seaf_helper_tools-0.17.0.tar.gz

Download URL seaf_helper_tools-0.17.0.tar.gz
Size 88.9 kB
Tags Source
SHA-256 checksum
How to use checksums
28262a616f5208c738995ab375c71ddad31a5f1648cf73910e397be3fd30ecbc
BLAKE2b-256 checksum
How to use checksums
f166accdf23cfbeb3128239fa1a94a85a42d9153d7369d3ea0ea72e4398b5723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / seaf_helper_tools-0.17.0-py3-none-any.whl

Download URL seaf_helper_tools-0.17.0-py3-none-any.whl
Size 79.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45a3b68c2554ae836363cc470ac4a1b3f4f05d776a205f22c048d5b85100cb18
BLAKE2b-256 checksum
How to use checksums
63ddb3ea39f890f6ccc002e626ff4ea85b480da54c866a32c848a16c547422d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for seaf-helper-tools 0.17.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page