web.py is a Python web framework that is as simple as it is powerful.
Visit http://webpy.org for more information.
To install web.py, please run:
python3 -m pip install web.py
Github pages for webpy.org
Home Page: http://webpy.org/
web.py is a Python web framework that is as simple as it is powerful.
Visit http://webpy.org for more information.
To install web.py, please run:
python3 -m pip install web.py
Streaming a large file using chunked worked fine when ran directly through webpy's built-in server, but when deployed in Apache using mod_wsgi it failed with an IOError. I found this similar issue report and can confirm it works without setting the chunked transfer header:
http://stackoverflow.com/questions/11866333/ioerror-when-trying-to-serve-file
Could you update the documentation to either remove the mention of chunked, or specify in which exclusive cases to use the chunked header?
Would be good if you open a paypal donation icon on site.
I just deployed an app on an Ubuntu 12.04 machine following this guide http://webpy.org/cookbook/fastcgi-nginx
Although the app works but it seems the guide is very old as flup link is not working. It also looks like spawn-fcgi is not in active development and soon will be deprecated. I was wondering if web.py can run on bare nginx?
I don't like to use spawn-fcgi and flup just don't make sense. Why not add flup and spawn-fcgi into web.py itself?
Hi Everyone! Sharing my works here to anyone needed the logo in HD, maybe in the future... Webpy Logo
The version of official cookbook is still 0.3 but I use the latest 0.61.When I learn how to share session in the child application, the solution given by official cookbook can't work. For example, after I used "session = web.ctx.session" in the child application, it reported an error as "AttributeError: 'ThreadedDict' object has no attribute 'session'" .It just did't share the session at all.
What should I do?
It's great to hear of a python based web platform, but unless you are a seasoned developer or can translate what code generates... the rest of us have little to no idea what it makes.
Can you post photos of the webpage it makes, examples of what it looks like? Screenshots of a web.py project that showcases how its easier or better to use vs what Django might be used in error to create.
archivd.com in https://github.com/webpy/webpy.github.com/blob/master/sites.md
Try opening it.
The link at the top of the page to mod_fcgid appears broken. The following may be better link?
I just proposed an update to the Oyster.com entry because of I have knowledge of that. However, several of the other items are out of date (I believe).
Frinki.com doesn't lead anywhere, except some spammy-looking redirect pages.
Some of the other items feel out of date to me (they haven't been updated in a long time). And I wonder if we could add other highish-profile websites by now?
http://webpy.org/src/ is giving 404 errors.
Hi!
The last link in the footer, "Fork this page in github" is broken.
Thanks in advance!
Recently, I've struggled a bit to find a way to initialize an object at application level and use it at request level.
Following an answer to the same question on SO, I finally used web.config
.
It looks like this:
class Foo:
def GET(self):
bar = web.config.bar
r = bar.something()
return r
if __name__ == "__main__":
web.config.bar = Bar()
app = web.application(urls, globals())
app.run()
I don't know if it the right way to do it. Nevertheless, IMHO, this use case should be documented in the very usefull "cookbook" section. And web.config
should be documented in "API Reference" section.
But http://webpy.org/docs/0.3/tutorial.md does. Not sure why.
When following the tutorial Django style multiple apps with web.py, I alway get the following error:
Traceback (most recent call last):
File "run.py", line 11, in <module>
delegate.run(mapping)
File "/home/siongui/dev/test/delegate.py", line 31, in run
web.run(handler, {})
AttributeError: 'module' object has no attribute 'run'
My scripts are the same as those in the tutorial. Could you please help fix this?
On this page, it mentions that adding the Transfer-Encoding: chunked
header is necessary for streaming files. This is misleading, as in some cases the header is added automatically. I haven't had time yet to investigate which scenarios result in it being added automatically. However, if it is added twice, some problems can occur in python clients. Specifically I noticed the problem using the requests library. While the download worked properly through chrome, it did not work correctly in python.
This document should be fixed to avoid misleading future developers.
https://webpy.org/ (https) says it has a bad certificate, probably because of mismatch of domain.
Hi all:
In the install page, there are 3 different setups: with the dev server, with Apache and with Lighttpd. The information related to Nginx configuration is in the Cookbook:
http://webpy.org/cookbook/mod_wsgi-nginx
http://webpy.org/cookbook/fastcgi-nginx
Maybe we should validate that info and merge it into the Install page, or at least include some reference to Nginx.
In the cookbook/session.md
I think this code :
class count:
def GET(self):
session.count += 1
return str(session.count)
should be written as
class count:
def GET(self):
session['count'] += 1
return str(session['count'])
to make the session object works.
Hello,
The sample code for sessions with WSGI should read:
app = web.application(urls, globals())
curdir = os.path.dirname(file)
web.config.session_parameters['cookie_path'] = '/'
session = web.session.Session(app, web.session.DiskStore(os.path.join(curdir,'sessions')),)
application = app.wsgifunc()
I found this solution on stackoverflow:
http://stackoverflow.com/questions/22076781/web-py-sessions-renew-every-reload-under-apache-cgi-wsgi
Thanks,
Mark
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.