nebula3-python
Python client for NebulaGraph v3
What it is and what it does
nebula3-python is the official Python client for NebulaGraph v3, a distributed graph database. It provides connection pooling, session management, and query execution against NebulaGraph servers, with support for both graph queries and storage-layer scanning. The library handles result parsing and offers utilities to extract and format query results for downstream processing or visualization.
Typical workflows involve creating a connection pool to a NebulaGraph cluster, obtaining a session, executing nGQL queries (NebulaGraph's query language), and processing results. The package supports parameterized queries, session context managers for automatic cleanup, and result transformation methods like dict_for_vis() for graph visualization. It's designed for both interactive analysis and production web services accessing a single graph space.
Use it for:
- Connect to a NebulaGraph cluster and execute graph traversal queries from Python applications
- Build a web service that maintains a session pool for efficient multi-user access to a single graph space
- Extract and transform query results into Pandas DataFrames or visualization-ready JSON structures
- Scan vertices and edges directly from NebulaGraph storage for bulk graph analysis
- Execute parameterized queries with server-side evaluation for dynamic graph exploration
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for connecting to and querying NebulaGraph v3 databases, supporting session pooling, parameterized queries, and result extraction for visualization.
Yes, if you are working with NebulaGraph v3. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It is the canonical client for Python-to-NebulaGraph integration. Verify version compatibility with your NebulaGraph server before installing.
Install
nebula3-python on PyPI
pip
pip install nebula3-pythonuv
uv add nebula3-pythonpoetry
poetry add nebula3-pythonInstalling nebula3-python
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with recent commits and no known vulnerabilities. Depends on five common utilities (future, httplib2, pytz, six, httpx) with no exotic system dependencies.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install nebula3-python
from nebula3.gclient.net import ConnectionPool
from nebula3.Config import Config
config = Config()
connection_pool = ConnectionPool()
connection_pool.init([('127.0.0.1', 9669)], config)
session = connection_pool.get_session('root', 'nebula')
result = session.execute('SHOW TAGS')
print(result)
session.release()
connection_pool.close()
Requires a running NebulaGraph v3 server accessible at the specified host and port; Python >= 3.6.2.
Verify before relying
- Exact compatibility matrix between nebula3-python versions and NebulaGraph server versions
- Performance characteristics under high concurrency or large result sets
- Whether Pandas integration is built-in or requires separate installation
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.6.2) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — future, httplib2, pytz, six, httpx |
| Maintenance | actively maintained — 661 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 137,446/month — #11,366 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nebula3_python-3.8.3-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
python-arangoPython driver for ArangoDB that provides…
permissive · top 5,000 on PyPI
connection_poolProvides a thread-safe connection pool that…
permissive · top 15,000 on PyPI
graphframesGraphFrames provides distributed graph…
permissive · top 5,000 on PyPI
objectgraphObjectgraph provides a Python class for…
permissive · top 15,000 on PyPI
streamlit-agraphRenders interactive network graphs in Streamlit…
unclear · top 15,000 on PyPI
jraphJraph provides data structures and utilities…
permissive · top 15,000 on PyPI
pystardogPython client library for querying and managing…
permissive · top 15,000 on PyPI
dune-clientA Python client for querying and managing Dune…
permissive · top 15,000 on PyPI