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 GUIDE.md 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.4.tar.gz (93.0 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.4-py3-none-any.whl (114.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultipa-6.0.4.tar.gz
  • Upload date:
  • Size: 93.0 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.4.tar.gz
Algorithm Hash digest
SHA256 1a079f79d6fbc64b7225133cc03d12f3223ad06ab410908282fd496f51d0c403
MD5 865732be432d00d5f84330a340a77d51
BLAKE2b-256 63ef80a86387d5f8b153ce6454b551f22e00dc1d59e4b2f34fc11a5842f12d2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultipa-6.0.4-py3-none-any.whl
  • Upload date:
  • Size: 114.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1cb65a2615ea397f17c41ec1e0a1b2cd542d7b45d38a22c028df83676f39932
MD5 a0255f039c82ca6de7e1f9fc98bf2173
BLAKE2b-256 ef2cf3425d7ae840a4d6d28bc8ef82cd3f757deabb86bdef9a554537a6b4c9fa

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