skillfed

gxformat2

Galaxy Workflow Format 2 Descriptions

gxformat2 v0.27.0 191.6K downloads/30d#9,880 on PyPI14
Permissive license MIT Active released

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 gxformat2

uv

uv add gxformat2

poetry

poetry add gxformat2

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Testing

Tags

galaxy workflow format 2workflow yaml parsergalaxy workflow validationconvert galaxy workflowsworkflow description languagegalaxy workflow lintingworkflow format conversion
galaxy-workflowsyaml-formatbioinformatics

More Software Development packages