langgraph-api


Namelanggraph-api JSON
Version 0.4.7 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2025-08-30 01:45:22
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseElastic-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LangGraph API

This package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The server is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.

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.

## Installation

Install the `langgraph-cli` package with the `inmem` extra. Your CLI version must be no lower than `0.1.55`.

```bash
pip install -U langgraph-cli[inmem]
```

## Quickstart

1. (Optional) Clone a starter template:

   ```bash
   langgraph new --template new-langgraph-project-python ./my-project
   cd my-project
   ```

   (Recommended) Use a virtual environment and install dependencies:

   ```bash
   python -m venv .venv
   source .venv/bin/activate
   python -m pip install .
   ```

2. Start the development server:

   ```shell
   langgraph dev --config ./langgraph.json
   ```

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.

## Usage

Start the development server:

```bash
langgraph dev
```

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.

## How-To

#### Attaching a debugger
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.

1. Install debugpy:

   ```bash
   pip install debugpy
   ```

2. Start the server in debug mode:

   ```bash
   langgraph dev --debug-port 5678
   ```

3. Configure your IDE:

   - **VS Code**: Add this launch configuration:
     ```json
     {
       "name": "Attach to LangGraph",
       "type": "debugpy",
       "request": "attach",
       "connect": {
                "host": "0.0.0.0",
                "port": 5678
            },
     }
     ```
   - **PyCharm**: Use "Attach to Process" and select the langgraph process

4. Set breakpoints in your graph code and start debugging.

## CLI options

```bash
langgraph dev [OPTIONS]
Options:
  --debug-port INTEGER         Enable remote debugging on specified port
  --no-browser                 Skip opening browser on startup
  --n-jobs-per-worker INTEGER  Maximum concurrent jobs per worker process
  --config PATH               Custom configuration file path
  --no-reload                 Disable code hot reloading
  --port INTEGER              HTTP server port (default: 8000)
  --host TEXT                 HTTP server host (default: localhost)
```

## License

This project is licensed under the Elastic License 2.0 - see the [LICENSE](./LICENSE) file for details.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "langgraph-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Nuno Campos <nuno@langchain.dev>, Will Fu-Hinthorn <will@langchain.dev>",
    "download_url": "https://files.pythonhosted.org/packages/c9/d1/96705baafd9f465ff9156d8ef3830af48636c28db3ca1a199be82483e972/langgraph_api-0.4.7.tar.gz",
    "platform": null,
    "description": "# LangGraph API\n\nThis package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The server is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.\n\nFor 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.\n\n## Installation\n\nInstall the `langgraph-cli` package with the `inmem` extra. Your CLI version must be no lower than `0.1.55`.\n\n```bash\npip install -U langgraph-cli[inmem]\n```\n\n## Quickstart\n\n1. (Optional) Clone a starter template:\n\n   ```bash\n   langgraph new --template new-langgraph-project-python ./my-project\n   cd my-project\n   ```\n\n   (Recommended) Use a virtual environment and install dependencies:\n\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate\n   python -m pip install .\n   ```\n\n2. Start the development server:\n\n   ```shell\n   langgraph dev --config ./langgraph.json\n   ```\n\n3. 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.\n\n## Usage\n\nStart the development server:\n\n```bash\nlanggraph dev\n```\n\nYour 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.\n\n## How-To\n\n#### Attaching a debugger\nDebug mode lets you attach your IDE's debugger to the LangGraph API server to set breakpoints and step through your code line-by-line.\n\n1. Install debugpy:\n\n   ```bash\n   pip install debugpy\n   ```\n\n2. Start the server in debug mode:\n\n   ```bash\n   langgraph dev --debug-port 5678\n   ```\n\n3. Configure your IDE:\n\n   - **VS Code**: Add this launch configuration:\n     ```json\n     {\n       \"name\": \"Attach to LangGraph\",\n       \"type\": \"debugpy\",\n       \"request\": \"attach\",\n       \"connect\": {\n                \"host\": \"0.0.0.0\",\n                \"port\": 5678\n            },\n     }\n     ```\n   - **PyCharm**: Use \"Attach to Process\" and select the langgraph process\n\n4. Set breakpoints in your graph code and start debugging.\n\n## CLI options\n\n```bash\nlanggraph dev [OPTIONS]\nOptions:\n  --debug-port INTEGER         Enable remote debugging on specified port\n  --no-browser                 Skip opening browser on startup\n  --n-jobs-per-worker INTEGER  Maximum concurrent jobs per worker process\n  --config PATH               Custom configuration file path\n  --no-reload                 Disable code hot reloading\n  --port INTEGER              HTTP server port (default: 8000)\n  --host TEXT                 HTTP server host (default: localhost)\n```\n\n## License\n\nThis project is licensed under the Elastic License 2.0 - see the [LICENSE](./LICENSE) file for details.",
    "bugtrack_url": null,
    "license": "Elastic-2.0",
    "summary": null,
    "version": "0.4.7",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "58e0f000e7e8297544eb7d507ff25491c4dac9853e1d16b3802b41fde05266f1",
                "md5": "9b52a74fc97f88b1b0b0a2913d9e3348",
                "sha256": "5764f0812b17e578f950f9a40bfa4a54b2b3f2c14792b5ee46d344aade1d9e43"
            },
            "downloads": -1,
            "filename": "langgraph_api-0.4.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b52a74fc97f88b1b0b0a2913d9e3348",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 1537867,
            "upload_time": "2025-08-30T01:45:18",
            "upload_time_iso_8601": "2025-08-30T01:45:18.770976Z",
            "url": "https://files.pythonhosted.org/packages/58/e0/f000e7e8297544eb7d507ff25491c4dac9853e1d16b3802b41fde05266f1/langgraph_api-0.4.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c9d196705baafd9f465ff9156d8ef3830af48636c28db3ca1a199be82483e972",
                "md5": "d3e53efa33dcda16e3e3c2223b8dd2a7",
                "sha256": "0b27935d12f473b82f49b1f884aa85293e623372118fd749cf10bc2c983b0c53"
            },
            "downloads": -1,
            "filename": "langgraph_api-0.4.7.tar.gz",
            "has_sig": false,
            "md5_digest": "d3e53efa33dcda16e3e3c2223b8dd2a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 1580998,
            "upload_time": "2025-08-30T01:45:22",
            "upload_time_iso_8601": "2025-08-30T01:45:22.924803Z",
            "url": "https://files.pythonhosted.org/packages/c9/d1/96705baafd9f465ff9156d8ef3830af48636c28db3ca1a199be82483e972/langgraph_api-0.4.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-30 01:45:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "langgraph-api"
}
        
Elapsed time: 1.52244s