NebulaGraph Python¶
NebulaGraph Python is a Python client for connecting to and managing the NebulaGraph database.
Prerequisites¶
You have installed Python 3.6 or later versions.
Compatibility with NebulaGraph¶
| NebulaGraph version | NebulaGraph Python version | 
|---|---|
| 3.2.0 | 3.1.0 | 
| 2.6.x | 2.6.0 | 
| 2.0.x | 2.0.0 | 
| 2.0.0-rc1 | 2.0.0rc1 | 
Install NebulaGraph Python¶
Install NebulaGraph Python with pip¶
$ pip install nebula3-python==<version>
Install NebulaGraph Python from the source code¶
- 
Clone the NebulaGraph Python source code to the host. - 
(Recommended) To install a specific version of NebulaGraph Python, use the Git option --branchto specify the branch. For example, to install v3.1.0, run the following command:$ git clone --branch release-3.1 https://github.com/vesoft-inc/nebula-python.git
 - 
To install the daily development version, run the following command to download the source code from the masterbranch:$ git clone https://github.com/vesoft-inc/nebula-python.git
 
- 
- 
Change the working directory to nebula-python. $ cd nebula-python
- 
Run the following command to install NebulaGraph Python. $ pip install .
Core of the example code¶
This section shows the core of the example code. For all the code, see Example.
  
    
      Last update:
      February 19, 2024