BioLib Python Client

raw JSON →
1.3.489 verified Sat May 09 auth: no python

BioLib Python Client for accessing BioLib platform services. Current version 1.3.489, actively maintained with frequent releases.

pip install pybiolib
error ModuleNotFoundError: No module named 'pybiolib'
cause Importing with the wrong module name.
fix
Use 'import biolib' (not 'import pybiolib').
error biolib.exceptions.AuthenticationError: Invalid API key
cause API key not set or incorrect.
fix
Generate a valid API key from BioLib dashboard and set it: biolib.api_key = 'your_key_here'.
breaking In version 1.3+, the import path changed from pybiolib to biolib. Old imports will fail.
fix Use 'import biolib' instead of 'import pybiolib'.
gotcha API key must be set before creating a Session. Setting it afterward has no effect.
fix Set biolib.api_key immediately after import.
deprecated The old session initialization method biolib.Session(api_key='...') is deprecated. Use biolib.api_key assignment instead.
fix Set biolib.api_key = 'your_key', then session = biolib.Session().

Initialize BioLib client, list tools, and run a tool.

import biolib

# Set your API token (get from BioLib dashboard)
biolib.api_key = os.environ.get('BIOLIB_API_KEY', '')

# Create a session
session = biolib.Session()

# List available tools
tools = session.list_tools()
print(tools)

# Run a tool
result = session.run('tool_id', inputs={'param': 'value'})
print(result)