Python library for uq cluster
Project description
Python client library for UQ cluster.
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
Release history Release notifications | RSS feed
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.0.tar.gz
(6.3 kB
view details)
Built Distribution
uq-0.1.0-py2.7.egg
(17.8 kB
view details)
File details
Details for the file uq-0.1.0.tar.gz
.
File metadata
- Download URL: uq-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f09a1135b9e662242906706620773862576ee4ed3a48126174cdb49b20cf3bf |
|
MD5 | b8db83452e83d011e206d1207b8c77db |
|
BLAKE2b-256 | e3d121ddd50e896eeadfe55829031cc2cb5cedf1ceabaf97714eabc72da12957 |
File details
Details for the file uq-0.1.0-py2.7.egg
.
File metadata
- Download URL: uq-0.1.0-py2.7.egg
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24aa13310e737757908d47ae7d6223e24fea5d97bed57252e55ab0ecbb3722a |
|
MD5 | bfd2d6f672d0bbb13fef7f865bfbf1bf |
|
BLAKE2b-256 | e15a066a790674027499b217d7050dd3fdec7be37841e46ccc43f889cc13fc99 |