Skip to main content

Pure Python Ultipa Driver

Project description

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

Project details


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.7.tar.gz (163.4 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.7-py3-none-any.whl (193.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ultipa-6.2.7.tar.gz
Algorithm Hash digest
SHA256 5f4d36c16e407686783492f2627f42dd5e3973314a0543e476c7a982caf906c3
MD5 6d17abc62637b74f53451f919724635b
BLAKE2b-256 b562d73f46ecfe059d1be9493b7141b9ad4f9df3f3040fafdeb0e110885703bc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ultipa-6.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2d069f51803080af89ab0e4baf1aab11cf14678394ed75efedbb7f18fbebee15
MD5 264c62794278baf1c21da5b83c5b5255
BLAKE2b-256 e51eec7cfaf26531520c182945fd016bab7975d49eb54e64c6d56559f7878d4c

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