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.
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
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.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for greenstalk-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec29d83a4fa372f577d1aa8d523bf431f03a270480a3e5e123f7986de2adaa75 |
|
MD5 | 7f4dc08705e90ef8ae6d8d6c16cfa33d |
|
BLAKE2b-256 | aab8638eeee92db0da96d9a864ad44d9d3a17592a723f49d33501e3df404aa08 |