Skip to main content

The GraphCompute SDK for Python allows user to access GraphCompute Service on Alibaba Cloud. You can access Graph Compute service without the need to generate accesskey-related signature manually. This README document introduces how to obtain and call GraphCompute SDK for Python. If you have any problem while using GraphCompute SDK for Python, please submit an issue.

Requirements

  • To use GraphCompute SDK for Python, you must have an Alibaba Cloud account as well as an AccessKey ID and an AccessKey Secret. Create and view your AccessKey on the RAM console or contact your system administrator.

  • To use GraphCompute SDK for Python to access the APIs of a product, you must first activate the product on the Alibaba Cloud console if required.

  • Python 2.7 is strongly recommended

Installation

Install the official release version through PIP:

$ pip install graphcompute

You can also install the unzipped installer package directly:

$ python setup.py install

Getting Started

# -*- coding: utf-8 -*-

from graphcompute import GraphCompute_Client
from graphcompute.utils.auth import Credentials

access_key_id = "your access_key_id"
access_key_secret = "your access_key_secret"
cred = Credentials(access_key_id, access_key_secret)

instance_domain = "your instance domain with port"
remote_endpoint = "ws://%s/gremlin" % str(instance_domain)
client = GraphCompute_Client(remote_endpoint, 'g', cred)

query="g.V()"
result = client.submit(query).one()

client.close()

More examples can be referred in basic_func_examples.py under “examples” directory.

License

Apache-2.0

Metadata

Release files for graphcompute 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphcompute 1.0.2
File Size Uploaded
graphcompute-1.0.2.tar.gz 5.5 kB Details

Release files / graphcompute-1.0.2.tar.gz

Download URL graphcompute-1.0.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5eab0fa769a2da5a6d0193d74359218c64f0b45224304c2170769e8fb1bb6dc0
BLAKE2b-256 checksum
How to use checksums
883f976178e27901d0b883bc8fd05c6837a7d81590a372edc48906c6fbda9cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/0.9.8 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page