Skip to content

koodaamo/greenstalk

 
 

Repository files navigation

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.

https://github.com/justinmayhew/greenstalk/workflows/CI/badge.svg?branch=main

Quickstart

>>> import greenstalk
>>> client = greenstalk.Client(('127.0.0.1', 11300))
>>> client.put(b'hello')
1
>>> job = client.reserve()
>>> job.id
1
>>> job.body
b'hello'
>>> client.delete(job)
>>> client.close()

Documentation is available on Read the Docs.

About

A Python 3 client for the beanstalkd work queue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.8%
  • Makefile 2.2%