Skip to main content

Python library for uq cluster

Project description

Python client library for UQ cluster.

https://badge.fury.io/py/uq.svg https://travis-ci.org/amyangfei/pyuq.svg?branch=master

Installation

pyuq requires a running uq server, in either standalone mode or cluster mode. See UQ’s getting-started for installation instructions.

To install pyuq, simply:

$ pip install uq

or from source:

python setup.py install

Getting Started

>>> import uq, datetime
>>> cli = uq.UqClient(protocol='http', ip='127.0.0.1', port=8808)
>>> cli.add('foo')
(True, '')
>>> cli.add('foo', 'x', datetime.timedelta(seconds=10))
(True, '')
>>> cli.push('foo', 'hello')
(True, '')
>>> cli.pop('foo/x')
(True, '127.0.0.1:8808/foo/x/0', u'hello')
>>> cli.remove('127.0.0.1:8808/foo/x/0')
(True, '')

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

uq-0.1.2.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file uq-0.1.2.tar.gz.

File metadata

  • Download URL: uq-0.1.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b474a190f0a7714e2cf9d216e094da4843397cb84468b344bc9edf8fe906b419
MD5 ba952379b3b58934b419ed8e3fd415b0
BLAKE2b-256 b9f49f77f59ee19c2bb2491d05ec1c0a32bb1231d6fd1138fc1960010cd65fe7

See more details on using hashes here.

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