Skip to main content

Galaxy bioinformatics CLI for automating histories, datasets, tools, workflows, and jobs via the Galaxy REST API

Project description

galaxy-cli — Galaxy bioinformatics command-line client

galaxy-cli is a Python CLI and REPL for automating the Galaxy bioinformatics platform from the shell. It wraps the Galaxy REST API for histories, datasets, collections, tools, workflows, jobs, and libraries.

This project was initially generated with cli-anything and then refined into the standalone galaxy-cli package.

pip install galaxy-cli

What can galaxy-cli do?

galaxy-cli is a Galaxy bioinformatics CLI for users who want a Galaxy command-line client that works naturally in shell scripts and reproducible Galaxy analyses. You can use it to:

  • run Galaxy workflows from the command line and submit individual Galaxy tools
  • upload and download datasets
  • create and manage histories and collections
  • inspect jobs, logs, tools, and workflow metadata
  • automate Galaxy workflows for reproducible Galaxy bioinformatics analyses

Prerequisites

  • Python 3.9+
  • A running Galaxy server
  • A Galaxy API key from your target instance

Installation

Install from PyPI with uv or pip:

uv tool install galaxy-cli
pip install galaxy-cli

For local development from this repository:

python3 -m pip install .

Verify installation:

which galaxy-cli
galaxy-cli --version

Configuration

Set your Galaxy server URL and API key:

export GALAXY_URL=https://usegalaxy.org
export GALAXY_API_KEY=your-api-key

galaxy-cli config test

Session state is stored in ~/.galaxy-cli/session.json. It is intended for a single active writer; for parallel automation or multiple concurrent agents, pass --history-id explicitly instead of relying on shared session state.

Usage

Documentation site: https://qchiujunhao.github.io/galaxy-cli/

galaxy-cli history list
galaxy-cli history create "My Analysis"
galaxy-cli tool search "bowtie"
galaxy-cli workflow list
galaxy-cli workflow list | jq .
galaxy-cli --human config show

galaxy-cli defaults to compact JSON output. Use --human for human-readable terminal output.

Run the REPL:

galaxy-cli

Tests

python3 -m pytest galaxy_cli/tests/ -v

Releases

Releases are published from GitHub Releases through PyPI Trusted Publishing. See RELEASE.md for the one-time PyPI setup and release checklist.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galaxy_cli-1.1.1.tar.gz (69.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galaxy_cli-1.1.1-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file galaxy_cli-1.1.1.tar.gz.

File metadata

  • Download URL: galaxy_cli-1.1.1.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for galaxy_cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0dcb6213461937cf91b568469e6588e6acd378227de9fb1af1485978772d6d85
MD5 cb9e98f73bb65494ae937682d9883175
BLAKE2b-256 4c1c090521d3e37475f8037ac4dd1bb12caf766c48a7c94ba54c065da3a207d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for galaxy_cli-1.1.1.tar.gz:

Publisher: release.yml on qchiujunhao/galaxy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file galaxy_cli-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: galaxy_cli-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for galaxy_cli-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a46478cb78953df33a3ec39c6343240b85339433a6f46d44d70cafff41d4365
MD5 9ae8e45b63a22cd21a512f72d83fcb26
BLAKE2b-256 df12b99eb86da57af1cf2f210f1efca7ac47ba55b697c7a8498c5443ec2d3aeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for galaxy_cli-1.1.1-py3-none-any.whl:

Publisher: release.yml on qchiujunhao/galaxy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page