Skip to content

amyangfei/pyuq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyUQ

Python client library for UQ cluster.

image

image

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, '')

About

Python client library for uq cluster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published