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.2.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.2.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ultipa-4.2.3-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultipa-4.2.3.tar.gz
  • Upload date:
  • Size: 79.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for ultipa-4.2.3.tar.gz
Algorithm Hash digest
SHA256 497e057e9ae05f6f7aead8e60c0050fe56632370643d0147dfe8fffc62cee5c5
MD5 d41f9c80d2ee26a75c95493398187d38
BLAKE2b-256 4380c3deb955994caffc37142d0cb621043dff459c41f1955fa0082084ffad74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultipa-4.2.3-py3-none-any.whl
  • Upload date:
  • Size: 97.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for ultipa-4.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ac21baad3e15cdb3968adc97567ddb970aaf441851dbf6b5a06a36588ba8c3e4
MD5 f6e89bda1b48439209dca0e37c3e9d75
BLAKE2b-256 f1735642d248af5c7bac2471c0e348b692bb4d49f9cfdc9716714719c617dd61

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