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.

Resources

Project details


Download files

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

Source Distribution

greenstalk-1.0.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

greenstalk-1.0.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page