https://github.com/spacejam/belasitsa
a tiny green WSGI back end for Mongrel 2
https://github.com/spacejam/belasitsa
Last synced: 11 months ago
JSON representation
a tiny green WSGI back end for Mongrel 2
- Host: GitHub
- URL: https://github.com/spacejam/belasitsa
- Owner: spacejam
- Created: 2013-04-23T15:36:42.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-27T23:32:34.000Z (almost 13 years ago)
- Last Synced: 2025-05-26T03:26:42.830Z (about 1 year ago)
- Language: Python
- Size: 105 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Belasitsa
=========
A _very_ simple WSGI back end for Mongrel 2. It is less than 200 lines of code and easily adaptable.
### Dependencies:
* pyzmq
* gevent
### Usage:
```
belasitsa -s send -r recv -a module.app [-w nworkers]
```
where:
* send is a Mongrel 2 server's SUB socket to send responses to, for example ```-s 'tcp://127.0.0.1:6666'```
* recv is a Mongrel 2 server's PUSH socket to receive requests from, for example ```-r 'tcp://127.0.0.1:6667'```
* module.app is the location of your WSGI-compliant application. If you would access your app in a python prompt with ```from your.wsgi.module import myapp```, then you would tell belasitsa ```-a your.wsgi.module.myapp```
* nworkers is the number of request handling greenlets to spawn. Mongrel 2 will serve them in a round-robin fashion. Defaults to 1.