Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 823 Bytes

README.rst

File metadata and controls

39 lines (29 loc) · 823 Bytes

Greenstalk

https://secure.travis-ci.org/mayhewj/greenstalk.png?branch=master

Installation

Greenstalk supports Python 3.5 and later. It's available on the Python Package Index and can be installed by running:

$ pip install greenstalk

Quickstart

>>> import greenstalk
>>> c = greenstalk.Client(host='127.0.0.1', port=11300)
>>> c.put('hello')
1
>>> jid, body = c.reserve()
>>> jid
1
>>> body
'hello'
>>> c.delete(jid)
>>> c.close()

Resources