Skip to main content

A Python 3 client for the beanstalkd work queue

Project description

https://img.shields.io/pypi/v/greenstalk.svg 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for greenstalk, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size greenstalk-1.0.1-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size greenstalk-1.0.1.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page