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.16.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 | Provenance | Actions |
|---|---|---|---|---|
| seaf_helper_tools-0.16.0.tar.gz | 88.3 kB | Without provenance | Details for seaf_helper_tools-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seaf_helper_tools-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for seaf_helper_tools-0.16.0-py3-none-any.whl |
Total release size: 167.2 kB
Release files / seaf_helper_tools-0.16.0.tar.gz
| Download URL | seaf_helper_tools-0.16.0.tar.gz |
|---|---|
| Size | 88.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fca188f14e5761547b7552fb9a24e495f0a03639b9f27dd00018273eaaeb0a68
|
|
BLAKE2b-256 checksum How to use checksums |
550167ac59493f5973b9a1b78113a97f98ed9a9fdd01bd124e813984d9f02e09
|
| 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.16.0-py3-none-any.whl
| Download URL | seaf_helper_tools-0.16.0-py3-none-any.whl |
|---|---|
| Size | 78.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
597c4850e73ba2c0ec485f07f5ed94e22b8cb669bee5c23e1b8744c68ec0d0f2
|
|
BLAKE2b-256 checksum How to use checksums |
be809ec1fa99580742c721ddf69730eea9bb47e0a01fa9aefe5a5b383e254eba
|
| 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.16.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.