{"id":28078,"library":"pybiolib","title":"BioLib Python Client","description":"BioLib Python Client for accessing BioLib platform services. Current version 1.3.489, actively maintained with frequent releases.","status":"active","version":"1.3.489","language":"python","source_language":"en","source_url":"https://github.com/biolib","tags":["biolib","bioinformatics","client"],"install":[{"cmd":"pip install pybiolib","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"PyPI package name differs from import name","wrong":"from pybiolib import biolib","symbol":"biolib","correct":"import biolib"}],"quickstart":{"code":"import biolib\n\n# Set your API token (get from BioLib dashboard)\nbiolib.api_key = os.environ.get('BIOLIB_API_KEY', '')\n\n# Create a session\nsession = biolib.Session()\n\n# List available tools\ntools = session.list_tools()\nprint(tools)\n\n# Run a tool\nresult = session.run('tool_id', inputs={'param': 'value'})\nprint(result)","lang":"python","description":"Initialize BioLib client, list tools, and run a tool."},"warnings":[{"fix":"Use 'import biolib' instead of 'import pybiolib'.","message":"In version 1.3+, the import path changed from pybiolib to biolib. Old imports will fail.","severity":"breaking","affected_versions":">=1.3.0"},{"fix":"Set biolib.api_key immediately after import.","message":"API key must be set before creating a Session. Setting it afterward has no effect.","severity":"gotcha","affected_versions":"all"},{"fix":"Set biolib.api_key = 'your_key', then session = biolib.Session().","message":"The old session initialization method biolib.Session(api_key='...') is deprecated. Use biolib.api_key assignment instead.","severity":"deprecated","affected_versions":">=1.2.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'import biolib' (not 'import pybiolib').","cause":"Importing with the wrong module name.","error":"ModuleNotFoundError: No module named 'pybiolib'"},{"fix":"Generate a valid API key from BioLib dashboard and set it: biolib.api_key = 'your_key_here'.","cause":"API key not set or incorrect.","error":"biolib.exceptions.AuthenticationError: Invalid API key"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}