Registry / serialization / galaxy-tool-util-models

galaxy-tool-util-models

JSON →
library26.0.1pypypiunverified

Pydantic models for Galaxy tools, providing type-safe data structures for tool definitions, parameters, inputs, outputs, and workflows. Current version 26.0.0, part of the Galaxy project, released as part of the main Galaxy monorepo with no fixed cadence.

pip install galaxy-tool-util-models
INSTALL
IMPORT
SIG · GALAXY-TOOL-UTIL-M
G
galaxy-tool-util-models
serializationpythonv26.0.1
Install
3.2s avg
Import
—
Disk
26MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v26.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 28.3MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.2s · import 0.000s · 28MB
26MB installed
● package 26MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tool
✓ from galaxy.tool_util_models import Tool
✗ from galaxy.tool_util_models import Tool

Basic usage: import and instantiate Tool model from a dictionary. Models are Pydantic-based and validate data on creation.

from galaxy.tool_util.models import Tool, ToolParameter # Example: parse a tool definition (assuming raw dict) raw_tool = { "id": "example_tool", "name": "Example Tool", "inputs": [ { "name": "input_file", "type": "data", "optional": False } ] } tool = Tool(**raw_tool) print(tool.name)
Debug
Known issues
breakingImport path change: models moved from 'galaxy.tools' to 'galaxy.tool_util.models' in v21.x. Old imports like 'from galaxy.tools import Tool' will fail.
fix
Use 'from galaxy.tool_util.models import Tool'.
affects: <21.0
breakingRemoval of 'Tool.workflow' attribute. Workflow-specific fields are now in separate WorkflowStep models.
fix
Use 'WorkflowStep' model from the same module for workflow-related tool definitions.
affects: >=25.0
gotchaPackage name vs import path: install with 'galaxy-tool-util-models' but import from 'galaxy.tool_util.models'. New users often try 'import galaxy_tool_util_models' which fails.
fix
Correct import: 'from galaxy.tool_util.models import ...'
affects: all
Upgrade
Version history
26.0.1latest on PyPI · released Jun 7, 2026
Audit
Dependencies
pydanticrequiredCore dependency for model definitions
Agent activity
6 hits · last 30 days
node
6
Resources
galaxy-tool-util-models — pip install galaxy-tool-util-models · libregistry