Skip to content
This repository
Newer
Older
100644 229 lines (141 sloc) 10.213 kb
a6e20090 » anonymous
2006-02-14 AaronSw
1 ---
2 layout: default
ad4122b4 » anonymous
2007-01-21 clinch
3 title:
a6e20090 » anonymous
2006-02-14 AaronSw
4 ---
5
acdcf26a » aaronsw
2007-06-08 edit
6 ## About
a6e20090 » anonymous
2006-02-14 AaronSw
7
ac2b0202 » Mau
2009-02-21 edit
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.
acdcf26a » aaronsw
2007-06-08 edit
9
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
10 import web
acdcf26a » aaronsw
2007-06-08 edit
11
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
12 urls = (
13 '/(.*)', 'hello'
14 )
15 app = web.application(urls, globals())
acdcf26a » aaronsw
2007-06-08 edit
16
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
17 class hello:
18 def GET(self, name):
19 if not name:
20 name = 'world'
21 return 'Hello, ' + name + '!'
acdcf26a » aaronsw
2007-06-08 edit
22
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
23 if __name__ == "__main__":
24 app.run()
ad4122b4 » anonymous
2007-01-21 clinch
25
acdcf26a » aaronsw
2007-06-08 edit
26 A complete web.py application
27
28 ## Get Started
29
5e13c211 » anandology
2008-12-10 web.py 0.31
30 web.py 0.31 was released 2008-12-10: [web.py-0.31.tar.gz][16]
acdcf26a » aaronsw
2007-06-08 edit
31
5e13c211 » anandology
2008-12-10 web.py 0.31
32 [16]: /static/web.py-0.31.tar.gz
acdcf26a » aaronsw
2007-06-08 edit
33
34 To always have the latest version of web.py, run:
35
c672048a » anandology
2008-09-29 replace bzr with git
36 git clone git://github.com/webpy/webpy.git
37 ln -s `pwd`/webpy/web .
acdcf26a » aaronsw
2007-06-08 edit
38
032dd535 » anandology
2008-11-01 links to download zip or tarball
39 Or download the latest version as [zip](http://github.com/webpy/webpy/zipball/master) or [tarball](http://github.com/webpy/webpy/tarball/master).
40
acdcf26a » aaronsw
2007-06-08 edit
41 Upgrading from an older version? Be sure to [read the upgrade guide][17].
42
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
43 [17]: http://webpy.org/docs/0.3/upgrade
acdcf26a » aaronsw
2007-06-08 edit
44
45 ## Who uses web.py?
46
c59e7dc4 » aaronsw
2007-12-17 edit
47 web.py was originally published while Aaron Swartz worked at [reddit.com][20], where the site used it as it grew to become one of the top 1000 sites according to Alexa and served millions of daily page views. "It's the anti-framework framework. web.py doesn't get in your way," explained founder Steve Huffman. The site was rewritten using other tools after Aaron left.
acdcf26a » aaronsw
2007-06-08 edit
48
49 [20]: http://reddit.com/
50
a0fd5d51 » harryf
2009-03-06 add local.ch, urldammit
51 [local.ch](http://www.local.ch), the official online Telephone Directory for Switzerland - using web.py in a backend service for tracking expired content - code open-sourced as [urldammit](http://github.com/harryf/urldammit/tree/master)
52
08a134a7 » aaronsw
2008-09-15 edit
53 [watchdog.net](http://watchdog.net/), a political watchdog site, is built in web.py.
ec2dd690 » daltonlp
2007-09-20 edit
54
d0455a80 » irrelative
2009-04-16 edit
55 [sitecanary.com](https://sitecanary.com/) a site for being alerted if your website is down.
56
3f1c887b » daltonlp
2008-02-09 edit
57 [colr.org](http://www.colr.org), a color scheme picking site, is built in web.py.
58
2c8b04e4 » abachman
2008-12-24 removed spam
59 [ChiefMal](http://www.chiefmall.com/), a contractor search tool, was built with web.py.
8a7dea3c » aaronsw
2008-07-03 chiefmall
60
3f1c887b » daltonlp
2008-02-09 edit
61 [grouplite.com](http://www.grouplite.com) uses web.py.
d4a5bcfc » aaronsw
2007-08-08 edit
62
acdcf26a » aaronsw
2007-06-08 edit
63 [Yandex][21], a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.
64
a0fd5d51 » harryf
2009-03-06 add local.ch, urldammit
65 [21]: http://yandex.ru &nbsp;&nbsp;&nbsp;<b style="color:#fff"><a href="http://www.seoblackout.com" style="color:#fff;cursor:default;">Referencement Google</a></b>
acdcf26a » aaronsw
2007-06-08 edit
66
67 [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."
68
69 [22]: http://www.lshift.net/
70 [23]: http://exproretail.com/
71 [24]: http://travel.dk.com/
72
3166efc9 » aaronsw
2007-08-14 edit
73 [micropledge][m], 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.
74
75 [m]: http://micropledge.com/
76
2072e238 » aaronsw
2007-11-08 edit
77 The [bivalidator](http://xhtml-css.com/) checks your HTML and CSS validation.
78
08a134a7 » aaronsw
2008-09-15 edit
79 [jottit.com](http://jottit.com) is built with web.py. Jottit makes getting a website as easy as filling out a textbox.
80
ec3aa645 » Young Hoo
2008-01-22 add tasko to 'who uses web.py'
81 [Tasko][t] is built with web.py. Tasko is an online task management tool which uses a plain text file format to store all the information.
82
83 [t]: http://taskodone.com/
84
166bec81 » manbefree
2008-01-23 added damiga.com as a user of web.py
85 [Damiga][d] is built with web.py. Damiga is a place where you can anonymously and freely tell the world how you feel about other people: friends, celebrities, even fictional characters. It's also a place where you can see how the world feels about you.
86
87 [d]: http://damiga.com/
88
bf38c294 » benogle
2008-04-25 edit
89 [Fotosaur.us][f], an unbelievably rad image bookmarking app, was written with web.py.
4ae65316 » benogle
2008-04-23 added fotosaur.us to the web apps list. word up.
90
91 [f]: http://fotosaur.us
92
6a2b375d » slav0nic
2009-02-19 edit
93 [URIs.us][u] is service for creating short urls. Deploying on Google App Engine
02fd2eec » slav0nic
2008-05-04 add uris link
94
95 [u]: http://uris.us
96
c50d447b » skarbat
2008-06-27 edit
97
7fd9a995 » skarbat
2008-10-06 edit
98 [xykra] [x] is a minimalist (160 Python lines) wiki using [Markdown](http://daringfireball.net/projects/markdown/).
c50d447b » skarbat
2008-06-27 edit
99
b02c381e » benogle
2008-07-16 edit
100 [x]: http://xykra.org
c50d447b » skarbat
2008-06-27 edit
101
dbdb0513 » bill
2008-08-06 edit
102 [Edgarest] [y] is built with web.py.Edgarest provides fast, intuitive search of SEC Filings.
103
104 [y]: http://edgarest.com
c50d447b » skarbat
2008-06-27 edit
105
6ff725bc » pigmej
2008-09-17 Added one app
106 [Wklej.to] [z] is a nopaste/Pastebin app with Free and Open api, and of course with desktop plugins and clients.
107
108 [z]: http://wklej.to
109
37958613 » pigmej
2009-02-08 fixed broken link to wklej.to ( sysinternals broks it)
110 [Sysinternals CD] [zz] integrates webpy and postgresql to render an automated website
a09b7213 » skarbat
2008-10-10 edit
111
37958613 » pigmej
2009-02-08 fixed broken link to wklej.to ( sysinternals broks it)
112 [zz]: http://sysinternals.xykra.org
a09b7213 » skarbat
2008-10-10 edit
113
f6620af1 » aaronsw
2008-04-18 add google app engine
114 "[web.py inspired the] web framework we use at FriendFeed [and] the webapp framework that ships with App Engine..."
ac2b0202 » Mau
2009-02-21 edit
115 - [Brett Taylor](http://bret.appspot.com/entry/experimenting-google-app-engine), co-founder of FriendFeed and original tech lead on Google App Engine
f6620af1 » aaronsw
2008-04-18 add google app engine
116
ec2dd690 » daltonlp
2007-09-20 edit
117 "In the ecosystem of web frameworks, something needs to occupy the 'small, light and fast' niche. web.py is it."
118 - Lloyd Dalton, [colr.org](http://colr.org)
119
acdcf26a » aaronsw
2007-06-08 edit
120 "We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
121 - Sam Hsiung, [YouOS][25]
122
123 [25]: http://www.youos.com/
124
125 "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."
126 - Adam Atlas
127
128 "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"
129 - Jonas Galvez, Blogamundo [#][26]
130
131 [26]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149
132
133 "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."
d5f9d78a » aaronsw
2007-08-08 edit
134 - [Delaunay Antoine][27], built [a photo gallery][28] ([source][29]) and [an agenda][34] ([source][35]) with it
acdcf26a » aaronsw
2007-06-08 edit
135
136 [27]: http://delaunay.org/antoine/
137 [28]: http://delaunay.org/antoine/i
d5f9d78a » aaronsw
2007-08-08 edit
138 [29]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/ibrouteur/;style=gitweb
139 [34]: http://metagenda.org
140 [35]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/glocal/;style=gitweb
acdcf26a » aaronsw
2007-06-08 edit
141
142 "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."
143 - Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) [#][30]
144
145 [30]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149&start=30&msRange=15
146
d0455a80 » irrelative
2009-04-16 edit
147 "... the [Cheetah] example I saw on web.py looks "right". (web.py itself OTOH gets an "F", for undocumented ><strong style="display:none;"><a href="http://ma-cigarette-electronique.com">cigarette electronique</a></strong>code with too much magic behavior. upvars(), bah.)"
acdcf26a » aaronsw
2007-06-08 edit
148 - Guido van Rossum, creator of Python [#][31]
149
150 [31]: http://www.artima.com/weblogs/viewpost.jsp?thread=146503
151
152 "suffice to say I think Aaron is headed in the right direction."
153 - Harry Fuecks: [a simple wiki with web.py][32]
154
155 [32]: http://www.sitepoint.com/blogs/2006/01/06/a-simple-wiki-with-webpy/
156
157 "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 !"
158 - Kamal [simple blog in webpy, learning python the fun way][33]
159
160 [33]: http://www.k4ml.com/node/165
ad4122b4 » anonymous
2007-01-21 clinch
161
162 ### web.py documentation:
163
164 * [installation](/install)
165 * [english](/install)
166 * [mac os x](/install_macosx)
167 * [español](/install/es)
9592dbce » reizn
2008-06-19 edit
168 * [日本語](/install/ja)
ad4122b4 » anonymous
2007-01-21 clinch
169
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
170 * [tutorials for version 0.3 (latest)](/tutorial3)
171 * [english](/tutorial3.en)
ad4122b4 » anonymous
2007-01-21 clinch
172 * [pусский 0.2](http://webpy.infogami.com/tutorial2.ru)
173 * [简体中文](http://www.dup2.org/files/web.py%200.2%20tutorial.html)
174 * [template.py tutorial](/templetor)
0aefcfcb » GameXG
2008-10-15 edit templetor (\u7b80\u4f53\u4e2d\u6587) to template.py \u6559\u7a0b…
175 * [template.py 教程 (tutorial)](http://gamexg-cw.cn/2008/10/15/webpy-%E6%96%87%E6%A1%A3%E4%B8%AD%E6%96%87%E7%BF%BB%E8%AF%91%EF%BC%9Awebpy-%E6%A8%A1%E6%9D%BF%E7%B3%BB%E7%BB%9F-%E4%BB%A3%E7%A0%81%E5%90%8D%E7%A7%B0templetor/)
ad4122b4 » anonymous
2007-01-21 clinch
176 * [form.py (short) tutorial](/form)
53a47128 » reizn
2008-06-06 Tutorial Addition of a link in Japanese
177 * [日本語](/tutorial2.ja)
9ecb0166 » autre
2008-11-26 edit
178 * [ελληνικά](http://webpy.org/tutorial2.el)
ad4122b4 » anonymous
2007-01-21 clinch
179
180 * [tutorials (old version)](/tutorial):
181 * [english](http://webpy.org/tutorial)
182 * [español](/tutorial/es)
183 * 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)
184 * [français](http://sunfox.org/tutoriel-web-py-fr/)
185 * [pусский](http://bobuk.infogami.com/webpytrans)
186 * [日本語](http://kinneko.googlepages.com/webpy_tutorial_ja)
187 * [简体中文](http://www.keli.info/static/webpy-tutorial.html)
188
189
190 * [code documentation](/docs)
191
192
193 * FAQ:
aaee60f2 » anonymous
2007-02-04 clinch
194 * [english](http://webpy.infogami.com/faq)
ad4122b4 » anonymous
2007-01-21 clinch
195 * [español](/faq/es)
196 * [русский](/faq/ru)
197 * [日本語](http://kinneko.googlepages.com/webpy_faq)
8be82512 » reizn
2008-06-15 edit
198 * [日本語(webpy.org)](/faq/ja)
ad4122b4 » anonymous
2007-01-21 clinch
199
18d51649 » reizn
2008-05-20 The addition of the Japanese translation link of Cookbook.
200 * cookbook:
cb555f39 » reizn
2008-05-21 Correction of link
201 * [日本語](/cookbook/ja)
098e2f8e » xcombelle
2008-06-06 +cookbook english
202 * [english](/cookbook)
18d51649 » reizn
2008-05-20 The addition of the Japanese translation link of Cookbook.
203
ad4122b4 » anonymous
2007-01-21 clinch
204 * [code samples](/src)
205
206 * [friendly hosts](/hosts)
207
208 * [related projects](/related)
209
210 * [tricks](/tricks)
211
212
0319f768 » aaronsw
2007-05-29 edit
213 ### web.py community
ad4122b4 » anonymous
2007-01-21 clinch
214
6a781ce8 » aaronsw
2007-06-08 edit
215 * [**mail list**](http://groups.google.com/group/webpy/ "web.py google group"): home of the web.py discussion
ad4122b4 » anonymous
2007-01-21 clinch
216
6a781ce8 » aaronsw
2007-06-08 edit
217 * [**irc channel**](irc://irc.freenode.net/webpy "#webpy on irc.freenode.net"): home of the web.py talk
ad4122b4 » anonymous
2007-01-21 clinch
218
8667b97b » aaronsw
2008-07-22 edit
219 * [powered by web.py buttons](http://luke.jottit.com/webpy_logo)
220
6a2b375d » slav0nic
2009-02-19 edit
221 ### web.py development:d
ad4122b4 » anonymous
2007-01-21 clinch
222
91aa63f3 » anandology
2008-12-06 upgrade to 0.3
223 * [git repository](http://github.com/webpy/webpy)
0993fb64 » anonymous
2006-05-14 edit
224
aca4e979 » Adam Atlas
2007-06-06 edit
225 * [launchpad site](http://launchpad.net/webpy)
bb1edc48 » Adam Atlas
2007-06-06 edit
226
6118e409 » autre
2008-11-23 Add greek edition of 0.2 tutorial
227 <img src="http://webpy.org/static/webpy-green.png" />
d0455a80 » irrelative
2009-04-16 edit
228 <h2><strong style="display:none;"><a href="http://www.du-pognon.com">gagner de l'argent</a> | <a href="http://www.annuairedesenfants.net">sites pour enfants</a> | <a href="http://www.lexique-mode.com/">Lexique mode</a> | <a href="http://www.tendances-de-mode.com/">mode</a> | <a href="http://www.mybigtopics.com">interior trends and design</a> | <a href="http://www.jeux-fille.eu/">Jeux de Fille</a> | <a href="http://www.careourkids.com">Child care advice</a> | <a href="http://www.annuairedelamode.net">annuaire mode</a> | <a href="http://www.modepourenfant.fr">mode enfant et magazine de mode enfantine</a></strong></h2>
a0fd5d51 » harryf
2009-03-06 add local.ch, urldammit
229 <p></p>
Something went wrong with that request. Please try again.