langgraph-api 0.0.1__py3-none-any.whl → 0.0.2__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/cli.py CHANGED
@@ -144,9 +144,7 @@ For production use, please use LangGraph Cloud.
144
144
  "version": 1,
145
145
  "incremental": False,
146
146
  "disable_existing_loggers": False,
147
- "formatters": {
148
- "simple": {"class": "langgraph_api.logging.Formatter"}
149
- },
147
+ "formatters": {"simple": {"class": "langgraph_api.logging.Formatter"}},
150
148
  "handlers": {
151
149
  "console": {
152
150
  "class": "logging.StreamHandler",
@@ -0,0 +1,130 @@
1
+ Metadata-Version: 2.1
2
+ Name: langgraph-api
3
+ Version: 0.0.2
4
+ Summary:
5
+ License: Elastic-2.0
6
+ Author: Nuno Campos
7
+ Author-email: nuno@langchain.dev
8
+ Requires-Python: >=3.11.0,<4.0
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Dist: cryptography (>=43.0.3,<44.0.0)
14
+ Requires-Dist: httpx (>=0.27.0)
15
+ Requires-Dist: jsonschema-rs (>=0.25.0,<0.26.0)
16
+ Requires-Dist: langchain-core (>=0.2.38,<0.4.0)
17
+ Requires-Dist: langgraph (>=0.2.52)
18
+ Requires-Dist: langgraph-checkpoint (>=2.0.5,<3.0)
19
+ Requires-Dist: langsmith (>=0.1.63,<0.2.0)
20
+ Requires-Dist: orjson (>=3.10.1)
21
+ Requires-Dist: pyjwt (>=2.9.0,<3.0.0)
22
+ Requires-Dist: sse-starlette (>=2.1.0,<3.0.0)
23
+ Requires-Dist: starlette (>=0.38.6)
24
+ Requires-Dist: structlog (>=24.4.0,<25.0.0)
25
+ Requires-Dist: tenacity (>=8.3.0,<9.0.0)
26
+ Requires-Dist: uvicorn (>=0.26.0)
27
+ Requires-Dist: watchfiles (>=0.13)
28
+ Description-Content-Type: text/markdown
29
+
30
+ # LangGraph API
31
+
32
+ This package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The sesrver is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.
33
+
34
+ For production use, see the various [deployment options](https://langchain-ai.github.io/langgraph/concepts/deployment_options/) for the LangGraph API, which are backed by a production-grade database.
35
+
36
+ ## Installation
37
+
38
+ Install the `langgraph-cli` package with the `inmem` extra. Your CLI version must be no lower than `0.1.55`.
39
+
40
+ ```bash
41
+ pip install -U langgraph-cli[inmem]
42
+ ```
43
+
44
+ ## Quickstart
45
+
46
+ 1. (Optional) Clone a starter template:
47
+
48
+ ```bash
49
+ langgraph new --template new-langgraph-project-python ./my-project
50
+ cd my-project
51
+ ```
52
+
53
+ (Recommended) Use a virtual environment and install dependencies:
54
+
55
+ ```bash
56
+ python -m venv .venv
57
+ source .venv/bin/activate
58
+ python -m pip install .
59
+ ```
60
+
61
+ 2. Start the development server:
62
+
63
+ ```shell
64
+ langgraph dev --config ./langgraph.json
65
+ ```
66
+
67
+ 3. The server will launch, opening a browser window with the graph UI. Interact with your graph or make code edits; the server automatically reloads on changes.
68
+
69
+ ## Usage
70
+
71
+ Start the development server:
72
+
73
+ ```bash
74
+ langgraph dev
75
+ ```
76
+
77
+ Your agent's state (threads, runs, assistants) persists in memory while the server is running - perfect for development and testing. Each run's state is tracked and can be inspected, making it easy to debug and improve your agent's behavior.
78
+
79
+ ## How-To
80
+
81
+ #### Attaching a debugger
82
+ Debug mode lets you attach your IDE's debugger to the LangGraph API server to set breakpoints and step through your code line-by-line.
83
+
84
+ 1. Install debugpy:
85
+
86
+ ```bash
87
+ pip install debugpy
88
+ ```
89
+
90
+ 2. Start the server in debug mode:
91
+
92
+ ```bash
93
+ langgraph dev --debug-port 5678
94
+ ```
95
+
96
+ 3. Configure your IDE:
97
+
98
+ - **VS Code**: Add this launch configuration:
99
+ ```json
100
+ {
101
+ "name": "Attach to LangGraph",
102
+ "type": "debugpy",
103
+ "request": "attach",
104
+ "connect": {
105
+ "host": "0.0.0.0",
106
+ "port": 5678
107
+ },
108
+ }
109
+ ```
110
+ - **PyCharm**: Use "Attach to Process" and select the langgraph process
111
+
112
+ 4. Set breakpoints in your graph code and start debugging.
113
+
114
+ ## CLI options
115
+
116
+ ```bash
117
+ langgraph dev [OPTIONS]
118
+ Options:
119
+ --debug-port INTEGER Enable remote debugging on specified port
120
+ --no-browser Skip opening browser on startup
121
+ --n-jobs-per-worker INTEGER Maximum concurrent jobs per worker process
122
+ --config PATH Custom configuration file path
123
+ --no-reload Disable code hot reloading
124
+ --port INTEGER HTTP server port (default: 8000)
125
+ --host TEXT HTTP server host (default: localhost)
126
+ ```
127
+
128
+ ## License
129
+
130
+ This project is licensed under the Elastic License 2.0 - see the [LICENSE](./LICENSE) file for details.
@@ -14,7 +14,7 @@ langgraph_api/auth/langsmith/backend.py,sha256=uHeb5-h13NIjrX_LDAvfWYr3zpbJvlvbd
14
14
  langgraph_api/auth/langsmith/client.py,sha256=eKchvAom7hdkUXauD8vHNceBDDUijrFgdTV8bKd7x4Q,3998
15
15
  langgraph_api/auth/middleware.py,sha256=_gJTOskEaln4RUT2rVYdQGPJVAyAiq-orsL_eQ3CynE,1369
16
16
  langgraph_api/auth/noop.py,sha256=vDJmzG2vArJxVzdHePvrJWahEa0dvGnhc2LEMMeiFz0,391
17
- langgraph_api/cli.py,sha256=gpFhsGLeG8kFdG_gx5xBwZwuCdwct4HZqyKsFRCQm6E,6496
17
+ langgraph_api/cli.py,sha256=LTETSHr2j5pBwKJkidKxzXfCohEScMnXjjIpfANBJpY,6458
18
18
  langgraph_api/config.py,sha256=cG6eO4P_SZ2pKedb2b4n4vnBHRQr0aiECvGvOA8ZlJA,2259
19
19
  langgraph_api/cron_scheduler.py,sha256=DAzY2DsADzEpPVbG2BOSLTIufI93yeRswd71Aby_lV0,2257
20
20
  langgraph_api/errors.py,sha256=Bu_i5drgNTyJcLiyrwVE_6-XrSU50BHf9TDpttki9wQ,1690
@@ -79,8 +79,8 @@ langgraph_storage/store.py,sha256=Z033CojJb6jMZbMu3VPtwR0bFdfyfdUS8dQSaXUASYU,73
79
79
  langgraph_storage/ttl_dict.py,sha256=FlpEY8EANeXWKo_G5nmIotPquABZGyIJyk6HD9u6vqY,1533
80
80
  logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
81
81
  openapi.json,sha256=JaieC_zSdQ9bzqJYdHUfCOnNt0ALBWcdj7uVjRLh9M8,122950
82
- langgraph_api-0.0.1.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
83
- langgraph_api-0.0.1.dist-info/METADATA,sha256=Q9T28mju11J_KEkHOBUGUlbg2ig5g1atanoHMKCpKKs,932
84
- langgraph_api-0.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
- langgraph_api-0.0.1.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
86
- langgraph_api-0.0.1.dist-info/RECORD,,
82
+ langgraph_api-0.0.2.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
83
+ langgraph_api-0.0.2.dist-info/METADATA,sha256=JlZkWP9lx3w6asP1m_U2NsCBkftoHp44PlEYWFmLezM,3986
84
+ langgraph_api-0.0.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
+ langgraph_api-0.0.2.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
86
+ langgraph_api-0.0.2.dist-info/RECORD,,
@@ -1,26 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: langgraph-api
3
- Version: 0.0.1
4
- Summary:
5
- License: Elastic-2.0
6
- Author: Nuno Campos
7
- Author-email: nuno@langchain.dev
8
- Requires-Python: >=3.11.0,<4.0
9
- Classifier: License :: Other/Proprietary License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: cryptography (>=43.0.3,<44.0.0)
14
- Requires-Dist: httpx (>=0.27.0)
15
- Requires-Dist: jsonschema-rs (>=0.25.0,<0.26.0)
16
- Requires-Dist: langchain-core (>=0.2.38,<0.4.0)
17
- Requires-Dist: langgraph (>=0.2.52)
18
- Requires-Dist: langsmith (>=0.1.63,<0.2.0)
19
- Requires-Dist: orjson (>=3.10.1)
20
- Requires-Dist: pyjwt (>=2.9.0,<3.0.0)
21
- Requires-Dist: sse-starlette (>=2.1.0,<3.0.0)
22
- Requires-Dist: starlette (>=0.38.6)
23
- Requires-Dist: structlog (>=24.4.0,<25.0.0)
24
- Requires-Dist: tenacity (>=8.3.0,<9.0.0)
25
- Requires-Dist: uvicorn (>=0.26.0)
26
- Requires-Dist: watchfiles (>=0.13)