web.py: makes web apps        "Think about the ideal way to write a web app.
Write the code to make it happen." (More...)

[log in]

About

web.py is a web framework for python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.

  import web

  urls = (
      '/(.*)', 'hello'
  )

  class hello:        
      def GET(self, name):
          i = web.input(times=1)
          if not name: name = 'world'
          for c in xrange(int(i.times)): print 'Hello,', name+'!'

  if __name__ == "__main__": web.run(urls, globals())

A complete web.py application

Get Started

web.py 0.22 was released 2007-08-23: web.py-0.22.tar.gz

To always have the latest version of web.py, run:

bzr get http://webpy.org/bzr/webpy.dev

Upgrading from an older version? Be sure to read the upgrade guide.

Who uses web.py?

reddit.com, one of the top 1000 sites according to Alexa, uses web.py to serve its millions of daily page views. "It's the anti-framework framework. web.py doesn't get in your way," explains founder Steve Huffman. (Disclosure: web.py creator Aaron Swartz was also a founder of reddit.)

jottit.com is built with web.py. Jottit makes getting a website as easy as filling out a textbox.

colr.org, a color scheme picking site, is built in web.py.

Yandex, a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.

LShift has used web.py to build websites for Expro and publisher Dorling Kindersley. "web.py allows us to do what we do best," they report. "It does the webapp thing brilliantly, and without requiring us to compromise on flexibility and originality."

micropledge, a web app that collects funding for software ideas, is built in web.py. "We've enjoyed fitting in with its minimalist approach," says developer Ben Hoyt.

The bivalidator checks your HTML and CSS validation.

Buzz

"In the ecosystem of web frameworks, something needs to occupy the 'small, light and fast' niche. web.py is it."
- Lloyd Dalton, colr.org

"We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
- Sam Hsiung, YouOS

"Django lets you write web apps in Django. TurboGears lets you write web apps in TurboGears. Web.py lets you write web apps in Python."
- Adam Atlas

"very nicely written and concise (not to mention it's written by Aaron Swartz, whose coding skills are very trustable), and doesn't get in my way"
- Jonas Galvez, Blogamundo #

"the first framework ... where I could just scribble code and see something working without even having to try to understand the logic of it. A pleasure to integrate."
- Delaunay Antoine, built a photo gallery (source) and an agenda (source) with it

"Guido [van Rossum, creator of Python], you'll probably find that web.py best suits your style. ... If you don't like it, I can't imagine which of the other dozens of frameworks out there you would like."
- Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) #

"... the [Cheetah] example I saw on web.py looks "right". (web.py itself OTOH gets an "F", for undocumented code with too much magic behavior. upvars(), bah.)"
- Guido van Rossum, creator of Python #

"suffice to say I think Aaron is headed in the right direction."
- Harry Fuecks: a simple wiki with web.py

"a very fascinating moment for me. The feelings just like the first time I wrote my php script ... it sure have let me learn python in the fun way. Good work aaron !"
- Kamal simple blog in webpy, learning python the fun way

web.py documentation:

web.py community

web.py development:

[edit][history][backlinks] last modified 2 days ago

started by Aaron Swartz (webpy@aaronsw.com)

powered by the new infogami