Skip to content
Newer
Older
100644 225 lines (137 sloc) 8.86 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
ac2b020 edit
Mau 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.
acdcf26 @aaronsw edit
aaronsw authored
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
bc5811a @jondynet 2009-16-04 to web.py 0.32 was released on 2009-06-04
jondynet authored
30 web.py 0.32 was released on 2009-06-04: [web.py-0.32.tar.gz][16]
acdcf26 @aaronsw edit
aaronsw authored
31
3aacffa @anandology web.py 0.32 is released
anandology authored
32 [16]: /static/web.py-0.32.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
f988f23 @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 being acquired by Condé Nast.)
acdcf26 @aaronsw edit
aaronsw authored
48
49 [20]: http://reddit.com/
50
a0fd5d5 @harryf add local.ch, urldammit
harryf authored
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
08a134a @aaronsw edit
aaronsw authored
53 [watchdog.net](http://watchdog.net/), a political watchdog site, is built in web.py.
ec2dd69 @daltonlp edit
daltonlp authored
54
d0455a8 @irrelative edit
irrelative authored
55 [sitecanary.com](https://sitecanary.com/) a site for being alerted if your website is down.
56
a6bc460 @aristus added link to archivd under "who uses"
aristus authored
57 [archivd.com](http://www.archivd.com), a web application for collaborative research and archiving, is built on web.py
58
3f1c887 @daltonlp edit
daltonlp authored
59 [colr.org](http://www.colr.org), a color scheme picking site, is built in web.py.
60
2c8b04e @abachman removed spam
abachman authored
61 [ChiefMal](http://www.chiefmall.com/), a contractor search tool, was built with web.py.
8a7dea3 @aaronsw chiefmall
aaronsw authored
62
3f1c887 @daltonlp edit
daltonlp authored
63 [grouplite.com](http://www.grouplite.com) uses web.py.
d4a5bcf @aaronsw edit
aaronsw authored
64
acdcf26 @aaronsw edit
aaronsw authored
65 [Yandex][21], a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.
66
a8e1aa4 remove HTML junk that was breaking Markdown link 21 to yandex.ru
pmocek authored
67 [21]: http://yandex.ru
acdcf26 @aaronsw edit
aaronsw authored
68
69 [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."
70
71 [22]: http://www.lshift.net/
72 [23]: http://exproretail.com/
73 [24]: http://travel.dk.com/
74
3166efc @aaronsw edit
aaronsw authored
75 [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.
76
77 [m]: http://micropledge.com/
78
2072e23 @aaronsw edit
aaronsw authored
79 The [bivalidator](http://xhtml-css.com/) checks your HTML and CSS validation.
80
08a134a @aaronsw edit
aaronsw authored
81 [jottit.com](http://jottit.com) is built with web.py. Jottit makes getting a website as easy as filling out a textbox.
82
ec3aa64 add tasko to 'who uses web.py'
Young Hoo authored
83 [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.
84
85 [t]: http://taskodone.com/
86
166bec8 added damiga.com as a user of web.py
manbefree authored
87 [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.
88
89 [d]: http://damiga.com/
90
bf38c29 @benogle edit
benogle authored
91 [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
92
93 [f]: http://fotosaur.us
94
6a2b375 edit
slav0nic authored
95 [URIs.us][u] is service for creating short urls. Deploying on Google App Engine
02fd2ee add uris link
slav0nic authored
96
97 [u]: http://uris.us
98
c50d447 @skarbat edit
skarbat authored
99
7fd9a99 @skarbat edit
skarbat authored
100 [xykra] [x] is a minimalist (160 Python lines) wiki using [Markdown](http://daringfireball.net/projects/markdown/).
c50d447 @skarbat edit
skarbat authored
101
b02c381 @benogle edit
benogle authored
102 [x]: http://xykra.org
c50d447 @skarbat edit
skarbat authored
103
dbdb051 edit
bill authored
104 [Edgarest] [y] is built with web.py.Edgarest provides fast, intuitive search of SEC Filings.
105
106 [y]: http://edgarest.com
c50d447 @skarbat edit
skarbat authored
107
6ff725b @pigmej Added one app
pigmej authored
108 [Wklej.to] [z] is a nopaste/Pastebin app with Free and Open api, and of course with desktop plugins and clients.
109
110 [z]: http://wklej.to
111
3795861 @pigmej fixed broken link to wklej.to ( sysinternals broks it)
pigmej authored
112 [Sysinternals CD] [zz] integrates webpy and postgresql to render an automated website
a09b721 @skarbat edit
skarbat authored
113
3795861 @pigmej fixed broken link to wklej.to ( sysinternals broks it)
pigmej authored
114 [zz]: http://sysinternals.xykra.org
a09b721 @skarbat edit
skarbat authored
115
f6620af @aaronsw add google app engine
aaronsw authored
116 "[web.py inspired the] web framework we use at FriendFeed [and] the webapp framework that ships with App Engine..."
ac2b020 edit
Mau authored
117 - [Brett Taylor](http://bret.appspot.com/entry/experimenting-google-app-engine), co-founder of FriendFeed and original tech lead on Google App Engine
f6620af @aaronsw add google app engine
aaronsw authored
118
ec2dd69 @daltonlp edit
daltonlp authored
119 "In the ecosystem of web frameworks, something needs to occupy the 'small, light and fast' niche. web.py is it."
120 - Lloyd Dalton, [colr.org](http://colr.org)
121
acdcf26 @aaronsw edit
aaronsw authored
122 "We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
123 - Sam Hsiung, [YouOS][25]
124
125 [25]: http://www.youos.com/
126
127 "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."
128 - Adam Atlas
129
130 "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"
1d00a08 @aaronsw edit
aaronsw authored
131 - Jonas Galvez, Aupeo [#][26]
acdcf26 @aaronsw edit
aaronsw authored
132
133 [26]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149
134
135 "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."
cbddcc3 delete the bad links
ken authored
136 - [Delaunay Antoine][27], built [a photo gallery][28] ([source][29]) and [an agency][34] ([source][35]) with it
acdcf26 @aaronsw edit
aaronsw authored
137
138 [27]: http://delaunay.org/antoine/
f19aafc edit
anonymous authored
139 [28]: http://www.ramifr.com/
f988f23 @aaronsw edit
aaronsw authored
140 [34]: http://www.bingofr.com/
d5f9d78 @aaronsw edit
aaronsw authored
141 [29]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/ibrouteur/;style=gitweb
142 [35]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/glocal/;style=gitweb
acdcf26 @aaronsw edit
aaronsw authored
143
144 "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."
145 - Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) [#][30]
146
147 [30]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149&start=30&msRange=15
148
bd8c4db @aaronsw rm spam
aaronsw authored
149 "... 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.)"
acdcf26 @aaronsw edit
aaronsw authored
150 - Guido van Rossum, creator of Python [#][31]
151
152 [31]: http://www.artima.com/weblogs/viewpost.jsp?thread=146503
153
154 "suffice to say I think Aaron is headed in the right direction."
155 - Harry Fuecks: [a simple wiki with web.py][32]
156
157 [32]: http://www.sitepoint.com/blogs/2006/01/06/a-simple-wiki-with-webpy/
158
159 "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 !"
160 - Kamal [simple blog in webpy, learning python the fun way][33]
161
162 [33]: http://www.k4ml.com/node/165
ad4122b clinch
anonymous authored
163
164 ### web.py documentation:
165
166 * [installation](/install)
167 * [english](/install)
168 * [mac os x](/install_macosx)
169 * [español](/install/es)
9592dbc edit
reizn authored
170 * [日本語](/install/ja)
ad4122b clinch
anonymous authored
171
91aa63f @anandology upgrade to 0.3
anandology authored
172 * [tutorials for version 0.3 (latest)](/tutorial3)
173 * [english](/tutorial3.en)
ad4122b clinch
anonymous authored
174 * [pусский 0.2](http://webpy.infogami.com/tutorial2.ru)
175 * [简体中文](http://www.dup2.org/files/web.py%200.2%20tutorial.html)
176 * [template.py tutorial](/templetor)
177 * [form.py (short) tutorial](/form)
53a4712 Tutorial Addition of a link in Japanese
reizn authored
178 * [日本語](/tutorial2.ja)
9ecb016 edit
autre authored
179 * [ελληνικά](http://webpy.org/tutorial2.el)
ad4122b clinch
anonymous authored
180
181 * [tutorials (old version)](/tutorial):
182 * [english](http://webpy.org/tutorial)
183 * [español](/tutorial/es)
184 * 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)
185 * [français](http://sunfox.org/tutoriel-web-py-fr/)
186 * [pусский](http://bobuk.infogami.com/webpytrans)
187 * [日本語](http://kinneko.googlepages.com/webpy_tutorial_ja)
188
189
190 * [code documentation](/docs)
191
192
193 * FAQ:
aaee60f clinch
anonymous authored
194 * [english](http://webpy.infogami.com/faq)
ad4122b clinch
anonymous authored
195 * [español](/faq/es)
196 * [русский](/faq/ru)
197 * [日本語](http://kinneko.googlepages.com/webpy_faq)
8be8251 edit
reizn authored
198 * [日本語(webpy.org)](/faq/ja)
ad4122b clinch
anonymous authored
199
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
200 * cookbook:
cb555f3 Correction of link
reizn authored
201 * [日本語](/cookbook/ja)
098e2f8 @xcombelle +cookbook english
xcombelle authored
202 * [english](/cookbook)
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
203
ad4122b clinch
anonymous authored
204 * [code samples](/src)
205
206 * [friendly hosts](/hosts)
207
208 * [related projects](/related)
209
210 * [tricks](/tricks)
211
212
0319f76 @aaronsw edit
aaronsw authored
213 ### web.py community
ad4122b clinch
anonymous authored
214
6a781ce @aaronsw edit
aaronsw authored
215 * [**mail list**](http://groups.google.com/group/webpy/ "web.py google group"): home of the web.py discussion
ad4122b clinch
anonymous authored
216
6a781ce @aaronsw edit
aaronsw authored
217 * [**irc channel**](irc://irc.freenode.net/webpy "#webpy on irc.freenode.net"): home of the web.py talk
ad4122b clinch
anonymous authored
218
8667b97 @aaronsw edit
aaronsw authored
219 * [powered by web.py buttons](http://luke.jottit.com/webpy_logo)
220
9c2a8a4 @anandology remove spam
anandology authored
221 ### web.py development
ad4122b clinch
anonymous authored
222
91aa63f @anandology upgrade to 0.3
anandology authored
223 * [git repository](http://github.com/webpy/webpy)
0993fb6 edit
anonymous authored
224
f19aafc edit
anonymous authored
225 * [launchpad site](http://launchpad.net/webpy)
Something went wrong with that request. Please try again.