Skip to main content

Ultipa Python Driver

Official Python driver for Ultipa graph database (GQL).

Requirements

  • Python 3.10+

Installation

pip install ultipa          # base driver
pip install ultipa[ml]      # + graph ML data loaders (torch); see gqldb.ml

Note: This is the v6.x driver for Ultipa Graph. If you are using Ultipa v4.x, please install ultipa==4.5.2. If you are using Ultipa v5.x, please install ultipa==5.2.1.

Quick Start

from gqldb import GqldbClient
from gqldb.config import GqldbConfig

# Create client
config = GqldbConfig(
    hosts=["localhost:60061"],
    username="admin",
    password="password",
    default_graph="myGraph"
)
client = GqldbClient(config)
client.login("admin", "password")

# Execute query
response = client.gql("MATCH (n) RETURN n LIMIT 10")

print(f"Rows: {len(response.rows)}")
print(f"Columns: {response.columns}")

# Close
client.close()

Features

  • GQL query execution with parameters
  • Streaming results for large datasets
  • Transaction support (begin, commit, rollback)
  • Graph management (create, drop, list)
  • Bulk import for high-throughput loading
  • Algorithm support (CALL algo.pagerank, algo.degree, etc.)
  • Graph ML data loaders for PyTorch Geometric / DGL — gqldb.ml (GraphLoader, NeighborLoader, EdgeLoader)
  • Type hints support
  • Health checks

Documentation

See Quick Start for detailed usage.

For the graph ML data loaders (streaming features / subgraphs into PyTorch Geometric / DGL for GNN training), see gqldb/ml/README.md.

License

MIT License

Download files

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

Source Distribution

ultipa-6.2.12.tar.gz (184.7 kB view details)

Uploaded Source

Built Distribution

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

ultipa-6.2.12-py3-none-any.whl (217.3 kB view details)

Uploaded Python 3

File details

Details for the file ultipa-6.2.12.tar.gz.

File metadata

  • Download URL: ultipa-6.2.12.tar.gz
  • Upload date:
  • Size: 184.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for ultipa-6.2.12.tar.gz
Algorithm Hash digest
SHA256 575d3983a33b7cb7439a0b7bf08012872bd9b2052cd78570dd29556a689dc6cb
MD5 6e9b982133fc4c51ad544f022ff3a23f
BLAKE2b-256 b53c9fe72594e570ac2f7e456ecf3c97c6e4d510c910d947d0144038a84fbcf4

See more details on using hashes here.

File details

Details for the file ultipa-6.2.12-py3-none-any.whl.

File metadata

  • Download URL: ultipa-6.2.12-py3-none-any.whl
  • Upload date:
  • Size: 217.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for ultipa-6.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 809cdb0864dd935c27cb981f1893aa5134e0fa6e1f7469ff160be64594617a0f
MD5 48c3388e827f649defd9587c1f44b068
BLAKE2b-256 509f74d4940ad3913db8f450cd8ec06cab4c58c8b002ed9811b03ff12f9812b4

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 Sentry Error logging StatusPage Status page