Skip to main content

A FastAPI LangGraph-compatible server backed by GaussDB.

Project description

LangGraph GaussDB FastAPI

A FastAPI server that implements key LangGraph Platform-compatible endpoints with async GaussDB persistence.

Install

python -m pip install langgraph-gaussdb-fastapi

To run the packaged Chainlit prototype too:

python -m pip install "langgraph-gaussdb-fastapi[chainlit]"

Run

Set the database connection with environment variables, then start the server:

LG_DB_HOST=127.0.0.1 \
LG_DB_USER=remote_user \
LG_DB_PASSWORD=your-password \
LG_DB_NAME=langgraph \
langgraph-gaussdb-fastapi

The default graph config now comes from the packaged server_config.json. You can still override it with LG_GRAPH_CONFIG.

{
  "dependencies": [],
  "graphs": {
    "echo": "graph.example_graph:graph",
    "qwen_tools": "graph.qwen_tools_graph:graph"
  }
}

Health checks are available at / and /ok.

Chainlit

The distribution includes the Chainlit prototype under the package namespace plus a launcher script:

LANGGRAPH_SERVER_URL=http://127.0.0.1:2026 \
langgraph-gaussdb-chainlit --headless --host 0.0.0.0 --port 8010

You can also run the packaged smoke test directly:

python -m langgraph_gaussdb_fastapi.chainlit_app.smoke_test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_gaussdb_fastapi-0.2.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langgraph_gaussdb_fastapi-0.2.0-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

Details for the file langgraph_gaussdb_fastapi-0.2.0.tar.gz.

File metadata

File hashes

Hashes for langgraph_gaussdb_fastapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b73c677149260d6407c296b5990ccba13a8fa39226d1e31f5466ef9caf36e61
MD5 023d436a56f4911e6e00348e745139cb
BLAKE2b-256 63e93b62d7ba4492dc217abfca46c6b7a734bc80267768c1198b7904cf7449a7

See more details on using hashes here.

File details

Details for the file langgraph_gaussdb_fastapi-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_gaussdb_fastapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 063caa03175f7cb47fdc62ebd7ecf13ae0831b2d4ef26172b817d576ddec91fe
MD5 390f56993ad07b5d7a1a19f0172f9bb1
BLAKE2b-256 32f318f27c8e08cb077c9ebf1c2016e3bbb790609d79efa18d7fb9dd36080b05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page