Skip to main content

This project is a branch of langgraph-sdk on QPython.

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

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.

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)

Release files for langgraph-sdk-aipy 0.1.61

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langgraph-sdk-aipy 0.1.61
File Size Uploaded
langgraph_sdk_aipy-0.1.61.tar.gz 44.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langgraph-sdk-aipy 0.1.61
File Interpreter ABI Platform
langgraph_sdk_aipy-0.1.61-py3-none-any.whl Python 3 none any Details

Total release size: 91.4 kB

Release files / langgraph_sdk_aipy-0.1.61.tar.gz

Download URL langgraph_sdk_aipy-0.1.61.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
84b4af6556eeb8f9eefb66edd0be272915268bbc2a5550a2ab37ffbd71169bbf
BLAKE2b-256 checksum
How to use checksums
1efad80f507801b8a2235142fe71f6815292c34394e071b94cf3a6c4aa4cfdbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / langgraph_sdk_aipy-0.1.61-py3-none-any.whl

Download URL langgraph_sdk_aipy-0.1.61-py3-none-any.whl
Size 46.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55f8160b1edd91f6e9930706e290d9b2201faa0482de19ee9800a291b1611837
BLAKE2b-256 checksum
How to use checksums
09c74fcc763721f7eb7bf7b664804047a705707dc9833188150c67460cb5b97c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.1.61 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page