From 76bd1a266d9fb456b3e8d5dae9802403b17ebd75 Mon Sep 17 00:00:00 2001 From: Anqi <16240361+Nicole00@users.noreply.github.com> Date: Thu, 8 Jan 2026 11:35:44 +0800 Subject: [PATCH] update doc --- docs/1_started.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/1_started.md b/docs/1_started.md index a26a45d0..d7eb7074 100644 --- a/docs/1_started.md +++ b/docs/1_started.md @@ -10,7 +10,7 @@ pip install nebula5_python==5.2.0 from source ```bash -git clone -b https://github.com/vesoft-inc/nebula-python.git +git clone -b dev https://github.com/vesoft-inc/nebula-python.git cd nebula-python pip install -e . ``` @@ -127,6 +127,23 @@ with NebulaClient( If you prefer manual lifecycle control, you can explicitly open and close clients. +- Sync version: + +```python +from nebulagraph_python import NebulaClient + +client = NebulaClient( + hosts=["127.0.0.1:9669"], + username="root", + password="NebulaGraph01", +) +try: + result = client.execute("RETURN 1 AS a, 2 AS b") + result.print() +finally: + client.close() +``` + - Async version: ```python