justinmayhew / greenstalk

A Python 3 client for the beanstalkd work queue

Home Page:https://greenstalk.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Greenstalk

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.

image

image

Quickstart

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

About

A Python 3 client for the beanstalkd work queue

https://greenstalk.readthedocs.io

License:MIT License


Languages

Language:Python 97.9%Language:Makefile 2.1%