Skip to main content

Pure Python Ultipa Driver

Project description

Ultipa Python SDK

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.6 <=3.10
  • Ultipa Server Version: >= 4.3.x

Installation

Package is uploaded on PyPI.

python3 -m pip install ultipa

Documentation

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

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)
conn.test().Print()

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-4.3.12.tar.gz (65.7 kB view hashes)

Uploaded Source

Built Distribution

ultipa-4.3.12-py3-none-any.whl (134.6 kB view hashes)

Uploaded Python 3

Supported by

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