{"id":23951,"library":"langflow-base","title":"Langflow Base","description":"A Python package with a built-in web application for building AI-powered workflows. Current version 0.9.1, released March 2025. Active development with monthly releases.","status":"active","version":"0.9.1","language":"python","source_language":"en","source_url":"https://github.com/langflow-ai/langflow","tags":["workflow","ai","web-application","low-code"],"install":[{"cmd":"pip install langflow-base","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Wildcard imports not recommended; use specific submodules.","wrong":"from langflow_base import *","symbol":"langflow_base","correct":"import langflow_base"},{"note":"Incorrect package name; use langflow_base.","wrong":"from langflow import load_flow","symbol":"load_flow","correct":"from langflow_base import load_flow"}],"quickstart":{"code":"import os\nfrom langflow_base import load_flow\n\n# Load a flow from a JSON file\nflow = load_flow('path/to/flow.json')\n# optional: set API key via env var\napi_key = os.environ.get('LANGFLOW_API_KEY', '')\nprint(f\"Flow loaded: {flow}\")","lang":"python","description":"Loads a Langflow flow from a JSON file. For authentication, set LANGFLOW_API_KEY environment variable."},"warnings":[{"fix":"Use new submodule paths as documented in the official changelog.","message":"langflow-base 0.9.x renamed several submodules (e.g., 'langflow_base.components' to 'langflow_base.components_v2'). Update imports accordingly.","severity":"breaking","affected_versions":">=0.9.0"},{"fix":"Replace 'run_flow(...)' with 'execute_flow(...)'.","message":"The function 'run_flow' is deprecated in 0.8.x and removed in 0.9.x. Use 'execute_flow' instead.","severity":"deprecated","affected_versions":">=0.9.0"},{"fix":"Ensure Python version is 3.10, 3.11, 3.12, or 3.13.","message":"The package requires Python >=3.10 and <3.14. Older Python versions will fail to install.","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'pip install langflow-base[web]' if you need the built-in web app.","message":"Web application dependencies (e.g., 'uvicorn', 'fastapi') are not automatically installed. Use 'langflow-base[web]' to include them.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install with 'pip install langflow-base' and import as 'import langflow_base'.","cause":"Incorrect package name often confused with 'langflow'.","error":"ModuleNotFoundError: No module named 'langflow_base'"},{"fix":"Use 'from langflow_base import execute_flow' instead.","cause":"Function 'run_flow' removed in 0.9.x.","error":"ImportError: cannot import name 'run_flow' from 'langflow_base'"},{"fix":"Use Python 3.10, 3.11, 3.12, or 3.13.","cause":"Python version not supported.","error":"RuntimeError: This package requires Python >=3.10 and <3.14"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}