skillfed

nebula3-python

Python client for NebulaGraph v3

nebula3-python v3.8.3 137.4K downloads/30d#11,366 on PyPI235
Permissive license Apache 2.0 Active released

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-python

uv

uv add nebula3-python

poetry

poetry add nebula3-python

Installing 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

nebulagraph python clientgraph database python driverquery nebulagraph from pythongraph query session poolnebulagraph connection poolgraph database visualizationnebulagraph result extraction
graph-databasenebulagraphdistributed-graph

More Database packages