https://github.com/noonat/whiskey
A Python WSGI server in Go
https://github.com/noonat/whiskey
golang python wsgi wsgi-server
Last synced: 6 months ago
JSON representation
A Python WSGI server in Go
- Host: GitHub
- URL: https://github.com/noonat/whiskey
- Owner: noonat
- License: mit
- Created: 2017-02-10T06:16:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T06:18:58.000Z (over 8 years ago)
- Last Synced: 2025-04-22T20:17:50.580Z (6 months ago)
- Topics: golang, python, wsgi, wsgi-server
- Language: Go
- Size: 49.8 KB
- Stars: 32
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Whiskey
Whiskey is a pre-fork Python WSGI server written in Go. It's intended as a
proof-of-concept alternative to something like [gunicorn]. If you had a
standard WSGI application file called hello.py like this one:```python
def application(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['hello', ' ', 'world']
```You could run Whiskey like so:
```
whiskey -addr 127.0.0.1:8080 hello:application
```(Note that hello.py must be importable by Python, so make sure that the
folder containing it has been added to your PYTHONPATH when you run Whiskey.)This is currently written for Python 2.7, with plans for Python 3 in the
future at some point.## Caveats
This is far from complete, and isn't intended for use in anything real. It's
a toy to explore interactions between Go and Python.[gunicorn]: http://gunicorn.org