Skip to main content

A Python 3 client for the beanstalkd work queue

Project description

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.

https://img.shields.io/pypi/v/greenstalk.svg https://secure.travis-ci.org/justinmayhew/greenstalk.svg?branch=master https://codecov.io/github/justinmayhew/greenstalk/coverage.svg?branch=master

Getting Started

>>> 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

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 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size greenstalk-2.0.0-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size greenstalk-2.0.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page