https://github.com/schmichael/beanstalkc-timeout
beanstalkc for bad networks
https://github.com/schmichael/beanstalkc-timeout
Last synced: 25 days ago
JSON representation
beanstalkc for bad networks
- Host: GitHub
- URL: https://github.com/schmichael/beanstalkc-timeout
- Owner: schmichael
- License: apache-2.0
- Created: 2012-01-06T03:17:01.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-06T03:25:21.000Z (over 14 years ago)
- Last Synced: 2025-01-26T00:13:35.026Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
- License: LICENSE
Awesome Lists containing this project
README
beanstalkc
==========
beanstalkc is a simple beanstalkd client library for Python. [beanstalkd][] is
a fast, distributed, in-memory workqueue service.
beanstalkc depends on [PyYAML][], but there are ways to avoid this dependency.
See Appendix A of the tutorial for details.
beanstalkc is pure Python, and is compatible with [eventlet][] and [gevent][].
[beanstalkd]: http://kr.github.com/beanstalkd/
[eventlet]: http://eventlet.net/
[gevent]: http://www.gevent.org/
[pyyaml]: http://pyyaml.org/
Usage
-----
Here is a short example, to illustrate the flavor of beanstalkc:
>>> import beanstalkc
>>> beanstalk = beanstalkc.Connection(host='localhost', port=11300)
>>> beanstalk.put('hey!')
1
>>> job = beanstalk.reserve()
>>> job.body
'hey!'
>>> job.delete()
For more information, see the tutorial (in `TUTORIAL.mkd`), which will explain
most everything.
License
-------
Copyright (C) 2008-2011 Andreas Bolka, Licensed under the [Apache License,
Version 2.0][license].
[license]: http://www.apache.org/licenses/LICENSE-2.0