Skip to main content

Pure Python Ultipa Driver

Project description

Ultipa Python Driver

Official Python driver for Ultipa graph database (GQL).

Requirements

  • Python 3.9+

Installation

pip install ultipa

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.)
  • Type hints support
  • Health checks

Documentation

See Quick Start for detailed usage.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ultipa-6.0.7.tar.gz
Algorithm Hash digest
SHA256 31da8b3601e0f9cfd0a232c16ed22944c990c2734cec35db2cbdd28ec7e72474
MD5 05b53d2773056ef41a3909bb50dd15e7
BLAKE2b-256 73e547195c384a6c49b57479b51e1ce09822f985b2bdf9b8784aa0a69b296096

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultipa-6.0.7-py3-none-any.whl
  • Upload date:
  • Size: 130.7 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.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 db3b4797758b22dabc1b60df9842d9b3231f25c9b82d0faba19fd02ce2997e1c
MD5 624e0faadcac2e4b287c852e340c8d3c
BLAKE2b-256 e1fa08cf4b812b644f544fd642e206faf84b6575c3ad93c367d4da212cac3835

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