BioBlend is a Python library for interacting with the Galaxy API. It simplifies scripting and automating Galaxy analyses, as well as administering a Galaxy server. The library supports Python 3.10 - 3.14 and Galaxy release 19.05 and later. It is actively developed and maintained, with regular releases.
pip install bioblendVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to connect to a Galaxy instance using `bioblend` and perform basic operations like listing histories and retrieving the Galaxy version. Ensure your Galaxy server is running and your API key is configured either directly in the script or via environment variables.
Ensure your `GalaxyInstance` initialization and subsequent API calls correctly pass the API key using the `key` parameter during `GalaxyInstance` creation, which handles the header internally. Old scripts might need updating.
Refer to the BioBlend documentation for the current equivalents. For example, `export_workflow_dict()` and `import_workflow_dict()` replace the JSON-specific workflow methods.
Choose the appropriate `GalaxyInstance` based on your desired interaction style. The standard API (`bioblend.galaxy`) generally offers broader coverage, while the `objects` API provides a more Pythonic interface for common tasks. Be aware that methods available on one might not be on the other.
Verify the `GALAXY_URL` is correct and accessible. Ensure the Galaxy server is running and configured to accept API connections. Check firewall rules if connecting remotely.
Double-check your `GALAXY_API_KEY` for typos. Ensure the key belongs to a user with the necessary permissions on the Galaxy server. Generate a new API key if unsure.
Consult the BioBlend documentation (e.g., `bioblend.readthedocs.io`) for the version you are using to find the updated method for retrieving the current history, or refactor your code to use `get_histories()` and select the desired one.
No dependency data recorded yet.