Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 201 lines (124 sloc) 7.949 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'
69b8ae7 @irrelative I think this makes the code a little easier for someone that's new to…
irrelative authored
20 for c in range(int(i.times)):
21 print 'Hello,', name+'!'
acdcf26 @aaronsw edit
aaronsw authored
22
23 if __name__ == "__main__": web.run(urls, globals())
24
ad4122b clinch
anonymous authored
25
acdcf26 @aaronsw edit
aaronsw authored
26 A complete web.py application
27
28 ## Get Started
29
8f66bbd @anandology updated to 0.23
anandology authored
30 web.py 0.23 was released 2008-01-19: [web.py-0.23.tar.gz][16]
acdcf26 @aaronsw edit
aaronsw authored
31
8f66bbd @anandology updated to 0.23
anandology authored
32 [16]: static/web.py-0.23.tar.gz
acdcf26 @aaronsw edit
aaronsw authored
33
34 To always have the latest version of web.py, run:
35
d2da01a @aaronsw edit
aaronsw authored
36 bzr get http://webpy.org/bzr/webpy.dev/
37 ln -s `pwd`/webpy.dev/web .
acdcf26 @aaronsw edit
aaronsw authored
38
39 Upgrading from an older version? Be sure to [read the upgrade guide][17].
40
41 [17]: http://webpy.infogami.com/upgrade_to_point2
42
43 ## Who uses web.py?
44
c59e7dc @aaronsw edit
aaronsw authored
45 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
46
47 [20]: http://reddit.com/
48
ec2dd69 @daltonlp edit
daltonlp authored
49 [jottit.com](http://jottit.com) is built with web.py. Jottit makes getting a website as easy as filling out a textbox.
50
3f1c887 @daltonlp edit
daltonlp authored
51 [colr.org](http://www.colr.org), a color scheme picking site, is built in web.py.
52
53 [grouplite.com](http://www.grouplite.com) uses web.py.
d4a5bcf @aaronsw edit
aaronsw authored
54
acdcf26 @aaronsw edit
aaronsw authored
55 [Yandex][21], a Russian traffic provider whose homepage alone receives 70 million daily page views, uses web.py for certain projects.
56
57 [21]: http://yandex.ru
58
59 [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."
60
61 [22]: http://www.lshift.net/
62 [23]: http://exproretail.com/
63 [24]: http://travel.dk.com/
64
3166efc @aaronsw edit
aaronsw authored
65 [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.
66
67 [m]: http://micropledge.com/
68
2072e23 @aaronsw edit
aaronsw authored
69 The [bivalidator](http://xhtml-css.com/) checks your HTML and CSS validation.
70
ec3aa64 add tasko to 'who uses web.py'
Young Hoo authored
71 [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.
72
73 [t]: http://taskodone.com/
74
166bec8 added damiga.com as a user of web.py
manbefree authored
75 [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.
76
77 [d]: http://damiga.com/
78
bf38c29 @benogle edit
benogle authored
79 [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
80
81 [f]: http://fotosaur.us
82
02fd2ee add uris link
slav0nic authored
83 [URIs.us][u] is service for creating short urls
84
85 [u]: http://uris.us
86
acdcf26 @aaronsw edit
aaronsw authored
87 ## Buzz
88
f6620af @aaronsw add google app engine
aaronsw authored
89 "[web.py inspired the] web framework we use at FriendFeed [and] the webapp framework that ships with App Engine..."
90 - [Brett Taylor](http://bret.appspot.com/entry/experimenting-google-app-engine), co-founder of FriendFeed and original tech lead on Google App Engine
91
ec2dd69 @daltonlp edit
daltonlp authored
92 "In the ecosystem of web frameworks, something needs to occupy the 'small, light and fast' niche. web.py is it."
93 - Lloyd Dalton, [colr.org](http://colr.org)
94
acdcf26 @aaronsw edit
aaronsw authored
95 "We completed our server rewrite a few days ago with web.py and it was everything we could have wished for."
96 - Sam Hsiung, [YouOS][25]
97
98 [25]: http://www.youos.com/
99
100 "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."
101 - Adam Atlas
102
103 "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"
104 - Jonas Galvez, Blogamundo [#][26]
105
106 [26]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149
107
108 "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
109 - [Delaunay Antoine][27], built [a photo gallery][28] ([source][29]) and [an agenda][34] ([source][35]) with it
acdcf26 @aaronsw edit
aaronsw authored
110
111 [27]: http://delaunay.org/antoine/
112 [28]: http://delaunay.org/antoine/i
d5f9d78 @aaronsw edit
aaronsw authored
113 [29]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/ibrouteur/;style=gitweb
114 [34]: http://metagenda.org
115 [35]: http://hg.delaunay.org/hacking?mf=9fcf30dc6138;path=/webpy/glocal/;style=gitweb
acdcf26 @aaronsw edit
aaronsw authored
116
117 "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."
118 - Phillip J. Eby, creator of the Python Web Server Gateway Interface (WSGI) [#][30]
119
120 [30]: http://www.artima.com/forums/flat.jsp?forum=106&thread=146149&start=30&msRange=15
121
122 "... 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.)"
123 - Guido van Rossum, creator of Python [#][31]
124
125 [31]: http://www.artima.com/weblogs/viewpost.jsp?thread=146503
126
127 "suffice to say I think Aaron is headed in the right direction."
128 - Harry Fuecks: [a simple wiki with web.py][32]
129
130 [32]: http://www.sitepoint.com/blogs/2006/01/06/a-simple-wiki-with-webpy/
131
132 "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 !"
133 - Kamal [simple blog in webpy, learning python the fun way][33]
134
135 [33]: http://www.k4ml.com/node/165
ad4122b clinch
anonymous authored
136
137 ### web.py documentation:
138
139 * [installation](/install)
140 * [english](/install)
141 * [mac os x](/install_macosx)
142 * [español](/install/es)
143
144 * [tutorials for version 0.2 (latest)](/tutorial2)
145 * [english](/tutorial2.en)
146 * [pусский 0.2](http://webpy.infogami.com/tutorial2.ru)
147 * [简体中文](http://www.dup2.org/files/web.py%200.2%20tutorial.html)
148 * [template.py tutorial](/templetor)
149 * [form.py (short) tutorial](/form)
150 * [upgrading from 0.1 to 0.2](http://webpy.infogami.com/upgrade_to_point2)
53a4712 Tutorial Addition of a link in Japanese
reizn authored
151 * [日本語](/tutorial2.ja)
ad4122b clinch
anonymous authored
152
153 * [tutorials (old version)](/tutorial):
154 * [english](http://webpy.org/tutorial)
155 * [español](/tutorial/es)
156 * 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)
157 * [français](http://sunfox.org/tutoriel-web-py-fr/)
158 * [pусский](http://bobuk.infogami.com/webpytrans)
159 * [日本語](http://kinneko.googlepages.com/webpy_tutorial_ja)
160 * [简体中文](http://www.keli.info/static/webpy-tutorial.html)
161
162
163 * [code documentation](/docs)
164
165
166 * FAQ:
aaee60f clinch
anonymous authored
167 * [english](http://webpy.infogami.com/faq)
ad4122b clinch
anonymous authored
168 * [español](/faq/es)
169 * [русский](/faq/ru)
170 * [日本語](http://kinneko.googlepages.com/webpy_faq)
171
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
172 * cookbook:
cb555f3 Correction of link
reizn authored
173 * [日本語](/cookbook/ja)
098e2f8 @xcombelle +cookbook english
xcombelle authored
174 * [english](/cookbook)
18d5164 The addition of the Japanese translation link of Cookbook.
reizn authored
175
ad4122b clinch
anonymous authored
176 * [code samples](/src)
177
178 * [friendly hosts](/hosts)
179
180 * [related projects](/related)
181
182 * [tricks](/tricks)
183
184
0319f76 @aaronsw edit
aaronsw authored
185 ### web.py community
ad4122b clinch
anonymous authored
186
6a781ce @aaronsw edit
aaronsw authored
187 * [**mail list**](http://groups.google.com/group/webpy/ "web.py google group"): home of the web.py discussion
ad4122b clinch
anonymous authored
188
6a781ce @aaronsw edit
aaronsw authored
189 * [**irc channel**](irc://irc.freenode.net/webpy "#webpy on irc.freenode.net"): home of the web.py talk
ad4122b clinch
anonymous authored
190
191 ### web.py development:
192
9bdd1cb @intellectronica edit
intellectronica authored
193 * [bazaar repository](http://webpy.org/bzr/webpy.dev) | [follow commits](https://code.edge.launchpad.net/~anandology/webpy/webpy.dev/+subscribe)
0993fb6 edit
anonymous authored
194
aca4e97 edit
Adam Atlas authored
195 * [launchpad site](http://launchpad.net/webpy)
bb1edc4 edit
Adam Atlas authored
196
62d58d9 @sj26 edit
sj26 authored
197 * [roadmap](/roadmap)
198
424f2b0 @aaronsw edit
aaronsw authored
199 * [todo](/todo)
200
201 <img src="http://webpy.org/static/webpy-green.png" />
Something went wrong with that request. Please try again.