Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lupino/gevent_worker
A gevent 1.0 worker
https://github.com/lupino/gevent_worker
Last synced: about 1 month ago
JSON representation
A gevent 1.0 worker
- Host: GitHub
- URL: https://github.com/lupino/gevent_worker
- Owner: Lupino
- Created: 2012-10-26T07:23:39.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-26T07:45:50.000Z (about 12 years ago)
- Last Synced: 2024-04-14T15:57:32.387Z (9 months ago)
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gevent_worker
=============A worker for gevent 1.0
Usage:
from gevent_worker.master import Master
from gevent_worker.worker import Workerclass MyWorker(Worker):
def __init__(self):
Worker.__init__(self)def run(self):
do_some_actiondef handler(self, msg):
print(msg)
do_some_actionmaster = Master()
for i in range(0,10):
master.start_worker(MyWorker)master.serve_forver()