langgraph-api 0.2.66__py3-none-any.whl → 0.2.68__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.2.66"
1
+ __version__ = "0.2.68"
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,11 @@ 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
+ threading.Thread(
358
+ target=_check_newer_version, args=("langgraph-api",), daemon=True
359
+ ).start()
315
360
  supported_kwargs = {
316
361
  k: v
317
362
  for k, v in kwargs.items()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.2.66
3
+ Version: 0.2.68
4
4
  Author-email: Nuno Campos <nuno@langchain.dev>, Will Fu-Hinthorn <will@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -1,7 +1,7 @@
1
- langgraph_api/__init__.py,sha256=k98LGK4ySOR9ShPT8NlPB-Gtit2RZHPSgSzUW_7QfDs,23
1
+ langgraph_api/__init__.py,sha256=VhcIWUc8CMbglTSx2PRXJQXLxGPIWajEYdegulJBOPk,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=9Ou3tGDDY_VVLt5DFle8UviJdpI4ZigC5hElYvq2-To,14519
4
+ langgraph_api/cli.py,sha256=13mKb-WT7fGx_yqcbWITPB9ICEHCrPzIP1ddZ5RbXbY,16015
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.66.dist-info/METADATA,sha256=-bXyK86CvJOx6DDciToR02XxIJvD3oRrgzeoMUfuuBE,3891
90
- langgraph_api-0.2.66.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
- langgraph_api-0.2.66.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
92
- langgraph_api-0.2.66.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
93
- langgraph_api-0.2.66.dist-info/RECORD,,
89
+ langgraph_api-0.2.68.dist-info/METADATA,sha256=tMf14kWcDmBYEZlH7COkzGx7xq6WD4g1-9m3c7d0AH8,3891
90
+ langgraph_api-0.2.68.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
+ langgraph_api-0.2.68.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
92
+ langgraph_api-0.2.68.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
93
+ langgraph_api-0.2.68.dist-info/RECORD,,