Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 159 lines (99 sloc) 5.792 kb
a6e2009 AaronSw
anonymous authored
1 ---
2 layout: default
ad4122b clinch
anonymous authored
3 title:
a6e2009 AaronSw
anonymous authored
4 ---
5
acdcf26 @aaronsw edit
aaronsw authored
6 ## About
a6e2009 AaronSw
anonymous authored
7
acdcf26 @aaronsw edit
aaronsw authored
8 **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.
9
10 import web
11
12 urls = (
13 '/(.*)', 'hello'
14 )
15
16 class hello:
17 def GET(self, name):
18 i = web.input(times=1)
19 if not name: name = 'world'
20 for c in xrange(int(i.times)): print 'Hello,', name+'!'
21
22 if __name__ == "__main__": web.run(urls, globals())
23
ad4122b clinch
anonymous authored
24
acdcf26 @aaronsw edit
aaronsw authored
25 A complete web.py application
26
27 ## Get Started
28
29 web.py 0.21 was released 2007-05-28: [web.py-0.21.tar.gz][16]
30
31 [16]: web.py-0.21.tar.gz
32
33 To always have the latest version of web.py, run:
34
35 svn co http://webpy.org/svn/trunk/web/
36
37 Upgrading from an older version? Be sure to [read the upgrade guide][17].
38
39 [17]: http://webpy.infogami.com/upgrade_to_point2
40
41 ## Who uses web.py?
42
43 [![reddit mascot][18]][19]
44
45 [18]: static/redditino.png
46 [19]: http://reddit.com/
47
48 [reddit.com][20], 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.)
49
50 [20]: http://reddit.com/
51
52 [Yandex][21], a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.
53
54 [21]: http://yandex.ru
55
56 [LShift][22] has used web.py to build websites for [Expro][23] and [publisher Dorling Kindersley][24]. "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."
57
58 [22]: http://www.lshift.net/
59 [23]: http://exproretail.com/
60 [24]: http://travel.dk.com/
61
62 ## Buzz
63
64 "We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
65 - Sam Hsiung, [YouOS][25]
66
67 [25]: http://www.youos.com/
68
69 "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."
70 - Adam Atlas
71
72 "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"
73 - Jonas Galvez, Blogamundo [#][26]
74
75 [26]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149
76
77 "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."
78 - [Delaunay Antoine][27], built [a photo gallery][28] ([source][29]) with it
79
80 [27]: http://delaunay.org/antoine/
81 [28]: http://delaunay.org/antoine/i
82 [29]: http://hg.delaunay.org/hacking
83
84 "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."
85 - Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) [#][30]
86
87 [30]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149&start=30&msRange=15
88
89 "... 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.)"
90 - Guido van Rossum, creator of Python [#][31]
91
92 [31]: http://www.artima.com/weblogs/viewpost.jsp?thread=146503
93
94 "suffice to say I think Aaron is headed in the right direction."
95 - Harry Fuecks: [a simple wiki with web.py][32]
96
97 [32]: http://www.sitepoint.com/blogs/2006/01/06/a-simple-wiki-with-webpy/
98
99 "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 !"
100 - Kamal [simple blog in webpy, learning python the fun way][33]
101
102 [33]: http://www.k4ml.com/node/165
ad4122b clinch
anonymous authored
103
104 ### web.py documentation:
105
106 * [installation](/install)
107 * [english](/install)
108 * [mac os x](/install_macosx)
109 * [español](/install/es)
110
111 * [tutorials for version 0.2 (latest)](/tutorial2)
112 * [english](/tutorial2.en)
113 * [pусский 0.2](http://webpy.infogami.com/tutorial2.ru)
114 * [简体中文](http://www.dup2.org/files/web.py%200.2%20tutorial.html)
115 * [template.py tutorial](/templetor)
116 * [form.py (short) tutorial](/form)
117 * [upgrading from 0.1 to 0.2](http://webpy.infogami.com/upgrade_to_point2)
118
119 * [tutorials (old version)](/tutorial):
120 * [english](http://webpy.org/tutorial)
121 * [español](/tutorial/es)
122 * português: [1](http://www.writely.com/View.aspx?docid=bbcm927cd2fmj) [2](http://www.writely.com/View.aspx?docid=bbcnjdbhbfh6n) [3](http://www.writely.com/View.aspx?docid=bccxp4cgw36p3)
123 * [français](http://sunfox.org/tutoriel-web-py-fr/)
124 * [pусский](http://bobuk.infogami.com/webpytrans)
125 * [日本語](http://kinneko.googlepages.com/webpy_tutorial_ja)
126 * [简体中文](http://www.keli.info/static/webpy-tutorial.html)
127
128
129 * [code documentation](/docs)
130
131
132 * FAQ:
aaee60f clinch
anonymous authored
133 * [english](http://webpy.infogami.com/faq)
ad4122b clinch
anonymous authored
134 * [español](/faq/es)
135 * [русский](/faq/ru)
136 * [日本語](http://kinneko.googlepages.com/webpy_faq)
137
138 * [code samples](/src)
139
140 * [friendly hosts](/hosts)
141
142 * [related projects](/related)
143
144 * [tricks](/tricks)
145
146
0319f76 @aaronsw edit
aaronsw authored
147 ### web.py community
ad4122b clinch
anonymous authored
148
f4f49dc @aaronsw edit
aaronsw authored
149 * **[mail list](http://groups.google.com/group/webpy/ "web.py google group")**: home of the web.py discussion
ad4122b clinch
anonymous authored
150
0319f76 @aaronsw edit
aaronsw authored
151 * **[irc channel](irc://irc.freenode.net/webpy "#webpy on irc.freenode.net")**: home of the web.py talk
ad4122b clinch
anonymous authored
152
153 ### web.py development:
154
155 * [subversion repository](http://webpy.org/svn/)
0993fb6 edit
anonymous authored
156
aca4e97 edit
Adam Atlas authored
157 * [launchpad site](http://launchpad.net/webpy)
bb1edc4 edit
Adam Atlas authored
158
d390251 AaronSw
anonymous authored
159 * [todo](/todo)
Something went wrong with that request. Please try again.