langgraph-sdk


Namelanggraph-sdk JSON
Version 0.1.58 PyPI version JSON
download
home_pagehttps://www.github.com/langchain-ai/langgraph
SummarySDK for interacting with LangGraph API
upload_time2025-03-19 21:12:55
maintainerNone
docs_urlNone
authorNone
requires_python<4.0.0,>=3.9.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LangGraph Python SDK

This repository contains the Python SDK for interacting with the LangGraph Cloud REST API.

## Quick Start

To get started with the Python SDK, [install the package](https://pypi.org/project/langgraph-sdk/)

```bash
pip install -U langgraph-sdk
```

You will need a running LangGraph API server. If you're running a server locally using `langgraph-cli`, SDK will automatically point at `http://localhost:8123`, otherwise
you would need to specify the server URL when creating a client.

```python
from langgraph_sdk import get_client

# If you're using a remote server, initialize the client with `get_client(url=REMOTE_URL)`
client = get_client()

# List all assistants
assistants = await client.assistants.search()

# We auto-create an assistant for each graph you register in config.
agent = assistants[0]

# Start a new thread
thread = await client.threads.create()

# Start a streaming run
input = {"messages": [{"role": "human", "content": "what's the weather in la"}]}
async for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):
    print(chunk)
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.github.com/langchain-ai/langgraph",
    "name": "langgraph-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.0",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/86/34/d924fbb53da5d6d9448f7ee3d38dee5d213a23eaba7b956cb320b0e32172/langgraph_sdk-0.1.58.tar.gz",
    "platform": null,
    "description": "# LangGraph Python SDK\n\nThis repository contains the Python SDK for interacting with the LangGraph Cloud REST API.\n\n## Quick Start\n\nTo get started with the Python SDK, [install the package](https://pypi.org/project/langgraph-sdk/)\n\n```bash\npip install -U langgraph-sdk\n```\n\nYou will need a running LangGraph API server. If you're running a server locally using `langgraph-cli`, SDK will automatically point at `http://localhost:8123`, otherwise\nyou would need to specify the server URL when creating a client.\n\n```python\nfrom langgraph_sdk import get_client\n\n# If you're using a remote server, initialize the client with `get_client(url=REMOTE_URL)`\nclient = get_client()\n\n# List all assistants\nassistants = await client.assistants.search()\n\n# We auto-create an assistant for each graph you register in config.\nagent = assistants[0]\n\n# Start a new thread\nthread = await client.threads.create()\n\n# Start a streaming run\ninput = {\"messages\": [{\"role\": \"human\", \"content\": \"what's the weather in la\"}]}\nasync for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):\n    print(chunk)\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "SDK for interacting with LangGraph API",
    "version": "0.1.58",
    "project_urls": {
        "Homepage": "https://www.github.com/langchain-ai/langgraph",
        "Repository": "https://www.github.com/langchain-ai/langgraph"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "19b320c2e01ac338daca2bef4a937a93b914e51e8afc79b5537c337abc5b11e4",
                "md5": "1dfb5351dfe119740f02c18be8b09c56",
                "sha256": "65f88cf5582da0c316714dc475126fa03c5f74d72bc0b9221dd42649de8e23d4"
            },
            "downloads": -1,
            "filename": "langgraph_sdk-0.1.58-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1dfb5351dfe119740f02c18be8b09c56",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 46504,
            "upload_time": "2025-03-19T21:12:54",
            "upload_time_iso_8601": "2025-03-19T21:12:54.365545Z",
            "url": "https://files.pythonhosted.org/packages/19/b3/20c2e01ac338daca2bef4a937a93b914e51e8afc79b5537c337abc5b11e4/langgraph_sdk-0.1.58-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8634d924fbb53da5d6d9448f7ee3d38dee5d213a23eaba7b956cb320b0e32172",
                "md5": "fdbcd0426e8134146a4581252303fff9",
                "sha256": "ef8b0e4c08af8c7efd3919497879c87a3627806b51e4ba5e8b06e0717e3d44cd"
            },
            "downloads": -1,
            "filename": "langgraph_sdk-0.1.58.tar.gz",
            "has_sig": false,
            "md5_digest": "fdbcd0426e8134146a4581252303fff9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 43438,
            "upload_time": "2025-03-19T21:12:55",
            "upload_time_iso_8601": "2025-03-19T21:12:55.852121Z",
            "url": "https://files.pythonhosted.org/packages/86/34/d924fbb53da5d6d9448f7ee3d38dee5d213a23eaba7b956cb320b0e32172/langgraph_sdk-0.1.58.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-19 21:12:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "langchain-ai",
    "github_project": "langgraph",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "langgraph-sdk"
}
        
Elapsed time: 3.04122s