langgraph-api 0.2.66__py3-none-any.whl → 0.2.67__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of langgraph-api might be problematic. Click here for more details.
- langgraph_api/__init__.py +1 -1
- langgraph_api/cli.py +46 -0
- {langgraph_api-0.2.66.dist-info → langgraph_api-0.2.67.dist-info}/METADATA +1 -1
- {langgraph_api-0.2.66.dist-info → langgraph_api-0.2.67.dist-info}/RECORD +7 -7
- {langgraph_api-0.2.66.dist-info → langgraph_api-0.2.67.dist-info}/WHEEL +0 -0
- {langgraph_api-0.2.66.dist-info → langgraph_api-0.2.67.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.2.66.dist-info → langgraph_api-0.2.67.dist-info}/licenses/LICENSE +0 -0
langgraph_api/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.
|
|
1
|
+
__version__ = "0.2.67"
|
langgraph_api/cli.py
CHANGED
|
@@ -114,6 +114,46 @@ class AuthConfig(TypedDict, total=False):
|
|
|
114
114
|
"""
|
|
115
115
|
|
|
116
116
|
|
|
117
|
+
def _check_newer_version(pkg: str, timeout: float = 0.2) -> None:
|
|
118
|
+
"""Log a notice if PyPI reports a newer version."""
|
|
119
|
+
import importlib.metadata as md
|
|
120
|
+
import json
|
|
121
|
+
import urllib.request
|
|
122
|
+
|
|
123
|
+
from packaging.version import Version
|
|
124
|
+
|
|
125
|
+
thread_logger = logging.getLogger("check_version")
|
|
126
|
+
if not thread_logger.handlers:
|
|
127
|
+
handler = logging.StreamHandler()
|
|
128
|
+
handler.setFormatter(logging.Formatter("%(message)s"))
|
|
129
|
+
thread_logger.addHandler(handler)
|
|
130
|
+
|
|
131
|
+
try:
|
|
132
|
+
current = Version(md.version(pkg))
|
|
133
|
+
with urllib.request.urlopen(
|
|
134
|
+
f"https://pypi.org/pypi/{pkg}/json", timeout=timeout
|
|
135
|
+
) as resp:
|
|
136
|
+
latest_str = json.load(resp)["info"]["version"]
|
|
137
|
+
latest = Version(latest_str)
|
|
138
|
+
if latest > current:
|
|
139
|
+
thread_logger.info(
|
|
140
|
+
"🔔 A newer version of %s is available: %s → %s (pip install -U %s)",
|
|
141
|
+
pkg,
|
|
142
|
+
current,
|
|
143
|
+
latest,
|
|
144
|
+
pkg,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
except Exception:
|
|
148
|
+
pass
|
|
149
|
+
|
|
150
|
+
except RuntimeError:
|
|
151
|
+
thread_logger.info(
|
|
152
|
+
f"Failed to check for newer version of {pkg}."
|
|
153
|
+
" To disable version checks, set LANGGRAPH_NO_VERSION_CHECK=true"
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
|
|
117
157
|
def run_server(
|
|
118
158
|
host: str = "127.0.0.1",
|
|
119
159
|
port: int = 2024,
|
|
@@ -312,6 +352,12 @@ For production use, please use LangGraph Cloud.
|
|
|
312
352
|
logger.info(welcome)
|
|
313
353
|
if open_browser:
|
|
314
354
|
threading.Thread(target=_open_browser, daemon=True).start()
|
|
355
|
+
nvc = os.getenv("LANGGRAPH_NO_VERSION_CHECK")
|
|
356
|
+
if nvc is None or nvc.lower() not in ("true", "1"):
|
|
357
|
+
print("Checking for newer version...")
|
|
358
|
+
threading.Thread(
|
|
359
|
+
target=_check_newer_version, args=("langgraph-api",), daemon=True
|
|
360
|
+
).start()
|
|
315
361
|
supported_kwargs = {
|
|
316
362
|
k: v
|
|
317
363
|
for k, v in kwargs.items()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
langgraph_api/__init__.py,sha256=
|
|
1
|
+
langgraph_api/__init__.py,sha256=rEMkQMd1xEY6WmwoTUQ4Q_9L1tdN4h_gKqmCA7tRVnU,23
|
|
2
2
|
langgraph_api/asgi_transport.py,sha256=eqifhHxNnxvI7jJqrY1_8RjL4Fp9NdN4prEub2FWBt8,5091
|
|
3
3
|
langgraph_api/asyncio.py,sha256=Odnc6mAJIGF3eFWT8Xcrg2Zam7FwzXkfCWEHaXfrzQQ,9371
|
|
4
|
-
langgraph_api/cli.py,sha256=
|
|
4
|
+
langgraph_api/cli.py,sha256=OBW3oKbK8wM0_JrKdWI0mMjCb047OwT_S6OTSp7vBf4,16066
|
|
5
5
|
langgraph_api/command.py,sha256=3O9v3i0OPa96ARyJ_oJbLXkfO8rPgDhLCswgO9koTFA,768
|
|
6
6
|
langgraph_api/config.py,sha256=jmtO5LXubet2Hl7S2tF2BRyB_q2yqCzFqCwN7n6za4Y,11727
|
|
7
7
|
langgraph_api/cron_scheduler.py,sha256=i87j4pJrcsmsqMKeKUs69gaAjrGaSM3pM3jnXdN5JDQ,2630
|
|
@@ -86,8 +86,8 @@ langgraph_runtime/store.py,sha256=7mowndlsIroGHv3NpTSOZDJR0lCuaYMBoTnTrewjslw,11
|
|
|
86
86
|
LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
87
87
|
logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
|
|
88
88
|
openapi.json,sha256=J4ICw3-W3LdxQOfsTuzcZVYt3e9UFeLb6oPr_a-5iHU,141823
|
|
89
|
-
langgraph_api-0.2.
|
|
90
|
-
langgraph_api-0.2.
|
|
91
|
-
langgraph_api-0.2.
|
|
92
|
-
langgraph_api-0.2.
|
|
93
|
-
langgraph_api-0.2.
|
|
89
|
+
langgraph_api-0.2.67.dist-info/METADATA,sha256=1hZkOLWJ9LVcgf2vwpW_BYo6wNZNdCSUypsirjGyliM,3891
|
|
90
|
+
langgraph_api-0.2.67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
91
|
+
langgraph_api-0.2.67.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
|
|
92
|
+
langgraph_api-0.2.67.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
93
|
+
langgraph_api-0.2.67.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|