GithubHelp home page GithubHelp logo

webpy.github.com's Introduction

pypi python versions build status

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

webpy.github.com's People

Contributors

aaronsw avatar adamcrosby avatar anandology avatar andymoe avatar arowla avatar btipling avatar coolgoose avatar dougalg avatar five3 avatar harryf avatar iredmail avatar irrelative avatar jeffkyjin avatar karoltx avatar leiqin avatar nestor-alonso avatar ohsc avatar qbuben avatar rpiqhsy avatar segeda avatar smallfish avatar sonnenberginformatik avatar stevekochscience avatar taizo avatar tzuryby avatar wendal avatar wrongwaycn avatar xrfang avatar zbuben avatar zencooking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webpy.github.com's Issues

Update cookbook/streaming_large_files: Remove chunked for WSGI deployed applications

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?

solely nginx compatible web.py

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?

How to share session in the child application?

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?

Pictures... any examples of all this cool stuff

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.

Update "Who uses web.py" section on homepage

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?

Link broken

Hi!

The last link in the footer, "Fork this page in github" is broken.

Thanks in advance!

use objects global to the application in requests

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.

Error when doing Django style multiple apps with web.py

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?

Add warning about using transfer-encoding header

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.