Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
adeel.github.com
Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
1–10 of 63 posts
Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#2Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#3Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#4This seems interesting but I'm not sure why. What are some use cases?
In the Ruby world if I want to use the awesome library Sass all I have to do is:
gem install sass
Because it functions as a Rack plugin it automatically works with any Ruby web framework & Ruby web server combo I choose. No special setup required.-----
Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#5This seems interesting but I'm not sure why. What are some use cases?
Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#6Here's another NoWSGI HTTP server library (Brubeck): http://news.ycombinator.com/item?id=2770866
Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#7Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#8This seems interesting but I'm not sure why. What are some use cases?
I believe the intent is to be Rack[1] for Python. The beauty of Rack is that I can build a new web framework, web server, or web app plugin and have it "just work" with the rest of the ecosystem. And because the Rack API is so simple, building to spec is easy. In the Ruby world if I want to use the awesome library Sass all I have to do is: gem install sass Because it functions as a Rack plugin it automatically works…
Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#9This seems interesting but I'm not sure why. What are some use cases?
I believe the intent is to be Rack[1] for Python. The beauty of Rack is that I can build a new web framework, web server, or web app plugin and have it "just work" with the rest of the ecosystem. And because the Rack API is so simple, building to spec is easy. In the Ruby world if I want to use the awesome library Sass all I have to do is: gem install sass Because it functions as a Rack plugin it automatically works…
# WSGI
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
yield 'Hello World\n'
# Rack
app = proc do |env|
[ 200, {'Content-Type' => 'text/plain'}, "a" ]
end
WSGI is the Rack for Python. In fact, WSGI predates Rack, and Rack is WSGI inspired.Re: Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
#10Earlier quoted context omitted.
I believe the intent is to be Rack[1] for Python. The beauty of Rack is that I can build a new web framework, web server, or web app plugin and have it "just work" with the rest of the ecosystem. And because the Rack API is so simple, building to spec is easy. In the Ruby world if I want to use the awesome library Sass all I have to do is: gem install sass Because it functions as a Rack plugin it automatically works…
Yes, Pump was heavily inspired by Rack and especially Clojure's Ring ( https://github.com/mmcgrana/ring ).
I don't think anyone other than wsgi library implementors code to WSGI. WSGI would be a problem if that's how python web programming was to be done - but that's not the case.