Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 226 lines (138 sloc) 9.476 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
91aa63f @anandology upgrade to 0.3
anandology authored
10 import web
acdcf26 @aaronsw edit
aaronsw authored
11
91aa63f @anandology upgrade to 0.3
anandology authored
12 urls = (
13 '/(.*)', 'hello'
14 )
15 app = web.application(urls, globals())
acdcf26 @aaronsw edit
aaronsw authored
16
91aa63f @anandology upgrade to 0.3
anandology authored
17 class hello:
18 def GET(self, name):
19 if not name:
20 name = 'world'
21 return 'Hello, ' + name + '!'
acdcf26 @aaronsw edit
aaronsw authored
22
91aa63f @anandology upgrade to 0.3
anandology authored
23 if __name__ == "__main__":
24 app.run()
ad4122b clinch
anonymous authored
25
acdcf26 @aaronsw edit
aaronsw authored
26 A complete web.py application
27
28 ## Get Started
29
5e13c21 @anandology web.py 0.31
anandology authored
30 web.py 0.31 was released 2008-12-10: [web.py-0.31.tar.gz][16]
acdcf26 @aaronsw edit
aaronsw authored
31
5e13c21 @anandology web.py 0.31
anandology authored
32 [16]: /static/web.py-0.31.tar.gz
acdcf26 @aaronsw edit
aaronsw authored
33
34 To always have the latest version of web.py, run:
35
c672048 @anandology replace bzr with git
anandology authored
36 git clone git://github.com/webpy/webpy.git
37 ln -s `pwd`/webpy/web .
acdcf26 @aaronsw edit
aaronsw authored
38
032dd53 @anandology links to download zip or tarball
anandology authored
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
acdcf26 @aaronsw edit
aaronsw authored
41 Upgrading from an older version? Be sure to [read the upgrade guide][17].
42
91aa63f @anandology upgrade to 0.3
anandology authored
43 [17]: http://webpy.org/docs/0.3/upgrade
acdcf26 @aaronsw edit
aaronsw authored
44
45 ## Who uses web.py?
46
c59e7dc @aaronsw edit
aaronsw authored
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.
acdcf26 @aaronsw edit
aaronsw authored
48
49 [20]: http://reddit.com/
50
08a134a @aaronsw edit
aaronsw authored
51 [watchdog.net](http://watchdog.net/), a political watchdog site, is built in web.py.
ec2dd69 @daltonlp edit
daltonlp authored
52
3f1c887 @daltonlp edit
daltonlp authored
53 [colr.org](http://www.colr.org), a color scheme picking site, is built in web.py.
54
5e13c21 @anandology web.py 0.31
anandology authored
55 [ChiefMal](http://www.chiefmall.com/)<a href="http://www.from-thailand.com/" title="Grossiste, Décoration asiatique, Thailande, Import Export" alt="Grossiste, Décoration asiatique, Import Export, Thailande">l</a>, a contractor search tool, was built with web.py.
8a7dea3 @aaronsw chiefmall
aaronsw authored
56
3f1c887 @daltonlp edit
daltonlp authored
57 [grouplite.com](http://www.grouplite.com) uses web.py.
d4a5bcf @aaronsw edit
aaronsw authored
58
acdcf26 @aaronsw edit
aaronsw authored
59 [Yandex][21], a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.
60
61 [21]: http://yandex.ru
62
63 [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."
64
65 [22]: http://www.lshift.net/
66 [23]: http://exproretail.com/
67 [24]: http://travel.dk.com/
68
3166efc @aaronsw edit
aaronsw authored
69 [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.
70
71 [m]: http://micropledge.com/
72
2072e23 @aaronsw edit
aaronsw authored
73 The [bivalidator](http://xhtml-css.com/) checks your HTML and CSS validation.
74
08a134a @aaronsw edit
aaronsw authored
75 [jottit.com](http://jottit.com) is built with web.py. Jottit makes getting a website as easy as filling out a textbox.
76
ec3aa64 add tasko to 'who uses web.py'
Young Hoo authored
77 [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.
78
79 [t]: http://taskodone.com/
80
166bec8 added damiga.com as a user of web.py
manbefree authored
81 [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.
82
83 [d]: http://damiga.com/
84
bf38c29 @benogle edit
benogle authored
85 [Fotosaur.us][f], an unbelievably rad image bookmarking app, was written with web.py.
4ae6531 @benogle added fotosaur.us to the web apps list. word up.
benogle authored
86
87 [f]: http://fotosaur.us
88
02fd2ee add uris link
slav0nic authored
89 [URIs.us][u] is service for creating short urls
90
91 [u]: http://uris.us
92
c50d447 @skarbat edit
skarbat authored
93
7fd9a99 @skarbat edit
skarbat authored
94 [xykra] [x] is a minimalist (160 Python lines) wiki using [Markdown](http://daringfireball.net/projects/markdown/).
c50d447 @skarbat edit
skarbat authored
95
b02c381 @benogle edit
benogle authored
96 [x]: http://xykra.org
c50d447 @skarbat edit
skarbat authored
97
dbdb051 edit
bill authored
98 [Edgarest] [y] is built with web.py.Edgarest provides fast, intuitive search of SEC Filings.
99
100 [y]: http://edgarest.com
c50d447 @skarbat edit
skarbat authored
101
6ff725b @pigmej Added one app
pigmej authored
102 [Wklej.to] [z] is a nopaste/Pastebin app with Free and Open api, and of course with desktop plugins and clients.
103
104 [z]: http://wklej.to
105
a09b721 @skarbat edit
skarbat authored
106 [Sysinternals CD] [z] integrates webpy and postgresql to render an automated website
107
108 [z]: http://sysinternals.xykra.org
109
91aa63f @anandology upgrade to 0.3
anandology authored
110 ## <a style="color:gray" href="http://www.buzzle.fr" title="Citation, les citations de nos amis people et de la politique">Buzz</a>
acdcf26 @aaronsw edit
aaronsw authored
111
f6620af @aaronsw add google app engine
aaronsw authored
112 "[web.py inspired the] web framework we use at FriendFeed [and] the webapp framework that ships with App Engine..."
91aa63f @anandology upgrade to 0.3
anandology authored
113 - [Brett Taylor](http://bret.appspot.com/entry/experimenting-google-app-engine), co-founder of FriendFeed and original tech lead on <a style="color:gray" href="http://www.goo-goo-gle-gle.com/" title="Google Pagerank, référencement, credits, referencement, rapidement, rapide" alt="Google Pagerank, référencement, credits, referencement, rapidement, rapide">Google</a> App Engine
f6620af @aaronsw add google app engine
aaronsw authored
114
ec2dd69 @daltonlp edit
daltonlp authored
115 "In the ecosystem of web frameworks, something needs to occupy the 'small, light and fast' niche. web.py is it."
116 - Lloyd Dalton, [colr.org](http://colr.org)
117
acdcf26 @aaronsw edit
aaronsw authored
118 "We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
119 - Sam Hsiung, [YouOS][25]
120
121 [25]: http://www.youos.com/
122
123 "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."
124 - Adam Atlas
125
126 "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"
127 - Jonas Galvez, Blogamundo [#][26]
128
129 [26]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149
130
131 "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."
d5f9d78 @aaronsw edit
aaronsw authored
132 - [Delaunay Antoine][27], built [a photo gallery][28] ([source][29]) and [an agenda][34] ([source][35]) with it
acdcf26 @aaronsw edit
aaronsw authored
133
134 [27]: http://delaunay.org/antoine/
135 [28]: http://delaunay.org/antoine/i
d5f9d78 @aaronsw edit
aaronsw authored
136 [29]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/ibrouteur/;style=gitweb
137 [34]: http://metagenda.org
138 [35]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/glocal/;style=gitweb
acdcf26 @aaronsw edit
aaronsw authored
139
140 "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."
141 - Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) [#][30]
142
143 [30]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149&start=30&msRange=15
144
145 "... 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.)"
146 - Guido van Rossum, creator of Python [#][31]
147
148 [31]: http://www.artima.com/weblogs/viewpost.jsp?thread=146503
149
150 "suffice to say I think Aaron is headed in the right direction."
151 - Harry Fuecks: [a simple wiki with web.py][32]
152
153 [32]: http://www.sitepoint.com/blogs/2006/01/06/a-simple-wiki-with-webpy/
154
155 "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 !"
156 - Kamal [simple blog in webpy, learning python the fun way][33]
157
158 [33]: http://www.k4ml.com/node/165
ad4122b clinch
anonymous authored
159
160 ### web.py documentation:
161
162 * [installation](/install)
163 * [english](/install)
164 * [mac os x](/install_macosx)
165 * [español](/install/es)
9592dbc edit
reizn authored
166 * [日本語](/install/ja)
ad4122b clinch
anonymous authored
167
91aa63f @anandology upgrade to 0.3
anandology authored
168 * [tutorials for version 0.3 (latest)](/tutorial3)
169 * [english](/tutorial3.en)
ad4122b clinch
anonymous authored
170 * [pусский 0.2](http://webpy.infogami.com/tutorial2.ru)
171 * [简体中文](http://www.dup2.org/files/web.py%200.2%20tutorial.html)
172 * [template.py tutorial](/templetor)
0aefcfc @GameXG edit templetor (\u7b80\u4f53\u4e2d\u6587) to template.py \u6559\u7a0b(tu...
GameXG authored
173 * [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/)
ad4122b clinch
anonymous authored
174 * [form.py (short) tutorial](/form)
53a4712 Tutorial Addition of a link in Japanese
reizn authored
175 * [日本語](/tutorial2.ja)
9ecb016 edit
autre authored
176 * [ελληνικά](http://webpy.org/tutorial2.el)
ad4122b clinch
anonymous authored
177
178 * [tutorials (old version)](/tutorial):
179 * [english](http://webpy.org/tutorial)
180 * [español](/tutorial/es)
181 * 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)
182 * [français](http://sunfox.org/tutoriel-web-py-fr/)
183 * [pусский](http://bobuk.infogami.com/webpytrans)
184 * [日本語](http://kinneko.googlepages.com/webpy_tutorial_ja)
185 * [简体中文](http://www.keli.info/static/webpy-tutorial.html)
186
187
188 * [code documentation](/docs)
189
190
191 * FAQ:
aaee60f clinch
anonymous authored
192 * [english](http://webpy.infogami.com/faq)
ad4122b clinch
anonymous authored
193 * [español](/faq/es)
194 * [русский](/faq/ru)
195 * [日本語](http://kinneko.googlepages.com/webpy_faq)
8be8251 edit
reizn authored
196 * [日本語(webpy.org)](/faq/ja)
ad4122b clinch
anonymous authored
197
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
198 * cookbook:
cb555f3 Correction of link
reizn authored
199 * [日本語](/cookbook/ja)
098e2f8 @xcombelle +cookbook english
xcombelle authored
200 * [english](/cookbook)
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
201
ad4122b clinch
anonymous authored
202 * [code samples](/src)
203
204 * [friendly hosts](/hosts)
205
206 * [related projects](/related)
207
208 * [tricks](/tricks)
209
210
0319f76 @aaronsw edit
aaronsw authored
211 ### web.py community
ad4122b clinch
anonymous authored
212
6a781ce @aaronsw edit
aaronsw authored
213 * [**mail list**](http://groups.google.com/group/webpy/ "web.py google group"): home of the web.py discussion
ad4122b clinch
anonymous authored
214
6a781ce @aaronsw edit
aaronsw authored
215 * [**irc channel**](irc://irc.freenode.net/webpy "#webpy on irc.freenode.net"): home of the web.py talk
ad4122b clinch
anonymous authored
216
8667b97 @aaronsw edit
aaronsw authored
217 * [powered by web.py buttons](http://luke.jottit.com/webpy_logo)
218
ad4122b clinch
anonymous authored
219 ### web.py development:
220
91aa63f @anandology upgrade to 0.3
anandology authored
221 * [git repository](http://github.com/webpy/webpy)
0993fb6 edit
anonymous authored
222
aca4e97 edit
Adam Atlas authored
223 * [launchpad site](http://launchpad.net/webpy)
bb1edc4 edit
Adam Atlas authored
224
6118e40 Add greek edition of 0.2 tutorial
autre authored
225 <img src="http://webpy.org/static/webpy-green.png" />
Something went wrong with that request. Please try again.