Skip to main content

Pure Python Ultipa Driver

Project description

Introduction

This Python SDK is a part of Ultipa Drivers, a set of specifications for developing software and applications using Java, Python, Go and NodeJs. This SDK provides instructions on introducing query and management operations of Ultipa Graph Database into Python programs, both by calling command through interfaces and sending assembled UQLs to an Ultipa server. A basic understanding of UQL query commands and the returned data structures is needed to guarantee a proper usage of the SDK.

Requirements

  • Python version: >=3.9 <=3.12
  • Ultipa Server Version: >= 5.0.x

Installation

To install ultipa python driver:

pip install ultipa

If you are using Ultipa v4.x,Please visit ultipa-4.5.2 to install the correct version.

Documentation

Documentation is available online: https://www.ultipa.com/document/ultipa-drivers/python-installation/v5.0.

Example

Example: Create a server connection and use graphset 'amz'

from ultipa import Connection, UltipaConfig

ultipaConfig = UltipaConfig()
ultipaConfig.hosts = ["192.168.1.85:60061", "192.168.1.86:60061", "192.168.1.87:60061"]
ultipaConfig.username = "***"
ultipaConfig.password = "***"
ultipaConfig.defaultGraph = "amz"

conn = Connection.NewConnection(defaultConfig=ultipaConfig)

isSuccess = conn.test()
print("Connection succeeds:", isSuccess)

req = conn.uql("show().graph()")
req.Print()

If you have any questions please contact: Ultipa Support

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-5.0.6.tar.gz (82.4 kB view details)

Uploaded Source

Built Distribution

ultipa-5.0.6-py3-none-any.whl (112.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultipa-5.0.6.tar.gz
  • Upload date:
  • Size: 82.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ultipa-5.0.6.tar.gz
Algorithm Hash digest
SHA256 09144a6c546ca0206299a114b1b98042a2c4e2c720e3254a45f813e1c45bb211
MD5 a6a40faa9cee5a7d3c5f3cf8ded848ee
BLAKE2b-256 3c7c28165dc635f15fbd041ecc676e65245be6be9b6a7e19d95d0abfd70de3c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultipa-5.0.6-py3-none-any.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ultipa-5.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2ea0332ae53199babab12367b795274c6302276564b41204985d3048c42f43
MD5 a7293251790453c95cc0e8eb654bc727
BLAKE2b-256 e7ec5bc6e40401e49a1c8be855b32aa5e12cdd44815b2399d4284e1be3954c4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page