Questions tagged [paster]

a set of utilities for web development in Python described as "a framework for web frameworks"

Python Paste

The Python Paste package contains Python modules that help in implementing WSGI middleware.

The package includes a WSGI wrapper for CGI applications. It also includes a simple webserver that can produce WSGI requests.

WSGI Middleware

The WSGI standard is an interface that allows applications to use Python code to handle HTTP requests. A WSGI application is passed a Python representation of an HTTP request by an application, and returns content which will normally eventually be rendered by a web browser. A common use for this is when a web server serves content created by Python code.

There are, however, other uses: WSGI middleware is Python code that receives a WSGI request and then performs logic based upon this request, before passing the request on to a WSGI application or more WSGI middleware. WSGI middleware appears to an application as a server, and to the server as an application. This is analogous to the function of pipes on Unix systems. Functionality provided by WSGI middleware may include authentication, logging, url redirection, creation of sessions, and compression.

Paste helps in developing such WSGI middleware systems. For example, it is used in the Pylons web application framework.

Subcomponents of Paste

Paste has been a long-running open source project, dating from at least 2005. As it has grown, it has unbundled several other utilities from the Paste core. These utilities are part of the Paste project, but form their own packages and have their own version numbers. They include:

WebOb is a wrapper around the WSGI environment. Paste Deploy is a system for finding and configuring WSGI applications and servers. Paste Script, WebTest, ScriptType, INITools, Tempita, WaitForIt, WPHP, WSGIFilter, and WSGIProxy are other notable bundles.

111 questions
0
votes
1 answer

Translating cookies from localhost serving wsgi server to nginx reverse proxy

I have nginx setup to front a python paste instance. They are on the same box with paste serving from 127.0.0.1 and nginx serving to outside world. The problem comes when my python app sets cookies, the domain stays with localhost rendering the…
user1561108
  • 2,666
  • 9
  • 44
  • 69
0
votes
1 answer

Paster requires to be run from program directory?

Im running a solaris server which uses supervisor to monitor some Python applications. Previously, I could run the command: paster serve /opt/pyapps/menuadmin/prod.ini from any directory on the server. There were some recent issues and the /opt…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
0
votes
2 answers

What makes "paster addcontent" fail for a package created with Zopeskel template "archetype"?

Here is the situation: fresh Plone 4.2 buildout a fresh package created using Zopeskel 2.21.1 with template 'archetype' and configured in my buildout using mr.developer Trying to add some content types inside my package fails with: [ajung@dev1…
user2665694
0
votes
1 answer

Pylons 0.9.6 Get Current Server Name

In my Pylons config file, I have: [server:main1] port = 9090 ...config here... [server:main2] port = 9091 ...config here... Which are ran using: paster serve --server-name=main1 ...(more stuff)... paster serve --server-name=main2 ...(more…
Matthew
  • 474
  • 1
  • 6
  • 12
0
votes
2 answers

Deploying a Flask application using Paste

I'm building a web service using Flask and I'm trying to deploy a simple "Hello, World" app using Paster. I'm having trouble get everything configured to work together though. I've seen the Google hit about running Flask with paste using virtualenv…
Eric Hydrick
  • 3,467
  • 2
  • 28
  • 41
-1
votes
1 answer

How does PasteWSGIServer handle concurrent request

I'm really confused on how Paste server handles concurrent request. I have a bottle framework, and bottle provides a parameter to switch to other servers to gain efficiency. However, I'm not able to understand how Paste server works. Gunicorn use…
Bai Bing
  • 381
  • 2
  • 15
1 2 3 4 5 6 7
8