GitHunt
JU

justinmayhew/greenstalk

A Python client for the beanstalkd work queue

Greenstalk

.. image:: https://img.shields.io/pypi/v/greenstalk.svg
:target: https://pypi.org/project/greenstalk/
:alt: Greenstalk on PyPI

Greenstalk is a small and unopinionated Python client library for communicating
with the beanstalkd_ work queue. The API provided mostly maps one-to-one with
commands in the protocol_.

Quickstart

.. code-block:: pycon

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

Documentation is available on Read the Docs_.

.. _beanstalkd: https://beanstalkd.github.io/
.. _protocol: https://raw.githubusercontent.com/beanstalkd/beanstalkd/master/doc/protocol.txt
.. _Read the Docs: https://greenstalk.readthedocs.io/

Languages

Python98.7%Makefile1.3%

Contributors

MIT License
Created May 14, 2017
Updated November 30, 2025