A Python 3 client for the beanstalkd work queue
Clone or download
mayhewj Remove Python 3.7 from Travis
It's not fully supported yet.
Latest commit e555853 Jun 30, 2018

README.rst

Greenstalk

https://secure.travis-ci.org/mayhewj/greenstalk.svg?branch=master https://codecov.io/github/mayhewj/greenstalk/coverage.svg?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

Getting Started

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

Documentation

Documentation is available on Read the Docs.

Resources