Welcome to Greenstalk¶
Greenstalk is a Python client library for communicating with the beanstalkd work queue. It makes it easy to write:
Producers, processes that insert jobs into a queue:
import greenstalk
with greenstalk.Client(('127.0.0.1', 11300)) as client:
client.put('hello')
Consumers, processes that take jobs from a queue and execute some work:
import greenstalk
with greenstalk.Client(('127.0.0.1', 11300)) as client:
while True:
job = client.reserve()
print(job.body)
client.delete(job)
Contents¶
Links¶
This project is developed on GitHub. Contributions are welcome.
Inspiration¶
Greenstalk is heavily inspired by the following libraries: