4 ms·
http://webpy.org/ http://webpy.org/ import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello:
by coconutrandom 17y ago
http://webpy.org/ http://webpy.org/
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'world'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()
- marcocampos 17y agoYep, it's pretty cool. But I would say it's more like a library and less like a framework.
- behe 17y agoThe only trouble I've run into with web.py is its extremely poor documentation.
- rabidsnail 17y agoIt's great for writing small one-offs (the sort of thing you might use PHP for) and web interfaces for non-web applications. But for large projects it's really not suitable.
- irrelative 17y agoI don't know about that. I've written some fairly large programs in webpy lately. Our latest site, http://sitecanary.com/ http://sitecanary.com/ has the UI completely written in webpy.