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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greenstalk-2.0.1.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for greenstalk-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5876e0e242745d714ec4cefdb91082aa051a81ebb277f4ee77b62144a68c2564 |
|
MD5 | 8a61616c2284289504955b74acb98115 |
|
BLAKE2b-256 | acc5e64c4fbc0674d4670c95940fbc4a1f4640cbc0afd9c9dc789bc17f0a4d2f |