gxformat2
Galaxy Workflow Format 2 Descriptions
What it is and what it does
gxformat2 is a Python library for working with Galaxy's Format 2 workflow description language, a YAML-based alternative to Galaxy's traditional .ga workflow format. It provides parsing, validation, and conversion utilities to help developers and workflow authors work with Galaxy workflows in a more human-readable and concise form. The package includes both a Python API for programmatic use and command-line tools for linting, visualization, and format conversion.
The library depends on pydantic for validation, pyyaml for YAML parsing, schema-salad for schema handling, and requests for HTTP operations. It supports Python 3.9 through 3.14 and is actively maintained. Format 2 is still somewhat experimental and may change in backward-incompatible ways, though it has been consumable by Galaxy since version 19.09.
Use it for:
- Validate Galaxy workflow definitions written in Format 2 YAML before deploying to a Galaxy instance.
- Convert existing Galaxy native workflows (.ga files) to the more readable Format 2 format for human editing.
- Lint and visualize Galaxy workflows using the included command-line tools (gxwf-lint, gxwf-viz).
- Integrate workflow format conversion into Planemo or other Galaxy development tools.
- Generate abstract workflow exports for documentation or sharing workflow logic without implementation details.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses, validates, and converts Galaxy workflow descriptions in Format 2, a human-readable YAML-based workflow language designed as an alternative to Galaxy's native .ga format.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a clear need for developers working with Galaxy workflows. It supports current Python versions and has no known vulnerabilities. Install it if you work with Galaxy workflows and want to use or validate the Format 2 YAML-based format.
Install
gxformat2 on PyPI
pip
pip install gxformat2uv
uv add gxformat2poetry
poetry add gxformat2Installing gxformat2
Before you install
Low friction installation with six runtime dependencies (pydantic, pyyaml, requests, schema-salad, eval_type_backport, typing_extensions). Actively maintained with a commit as recent as 2026-08-11 and releases within the past 79 days.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
pip install gxformat2
from gxformat2 import converter
# Convert Format 2 workflow to native Galaxy format
converted = converter.to_native(workflow_dict)
Requires Python 3.9 or later; schema-salad dependency may require system libraries for XML/YAML processing.
Verify before relying
- Whether the package's command-line tools (gxwf-lint, gxwf-viz, gxwf-abstract-export, gxwf-to-native, gxwf-to-format2) are documented in the library API or only available via CLI.
- Whether Format 2 workflows are fully backward-compatible with Galaxy 19.09+ or if version-specific constraints apply.
- Current stability of Format 2 relative to the description's note that it 'may yet change in small potentially backward incompatible ways'.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — eval_type_backport, pydantic, pyyaml, requests, schema-salad, typing_extensions |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 191,586/month — #9,880 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gxformat2-0.27.0-py3-none-any.whl
Keywords: galaxy
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
bioblendBioBlend provides a Python client library for…
permissive · top 15,000 on PyPI
galaxy-release-utilProvides command-line scripts to automate…
unclear · top 15,000 on PyPI
gravityGravity manages multiple Galaxy server…
permissive · top 15,000 on PyPI
repo2rocrateGenerates RO-Crate metadata from workflow…
permissive · top 15,000 on PyPI
total-perspective-vortexTotal Perspective Vortex (TPV) provides dynamic…
permissive · top 15,000 on PyPI
pulsar-galaxy-libPulsar Galaxy Lib is a Python server that…
permissive · top 15,000 on PyPI
schema-saladSchema Salad is a schema language for…
permissive · top 15,000 on PyPI
flake8-gl-codeclimateA Flake8 formatter that outputs linting results…
permissive · top 15,000 on PyPI
flake8-formatter-junit-xmlFormats flake8 linting output as JUnit XML,…
permissive · top 15,000 on PyPI