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
21
votes
2 answers

What is paste script?

I'm trying to understand what paste script and paster are. The website is far from clear. I used paster to generate pre-made layouts for projects, but I don't get the big picture. As far as I understand, and from the wikipedia entry, it says it's a…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
9
votes
2 answers

What is paster and how do I install it?

I am installing an application and have installed python and easy_install. I now have two steps to complete: 5. Make a config file as follows:: paster make-config openbiblio development.ini 6. Tweak the config file as appropriate and then…
peter.murray.rust
  • 37,407
  • 44
  • 153
  • 217
7
votes
1 answer

Can I have multiple ini config files in Pyramid?

I'd like an equivalent of the Django One True Way settings layout: a shared base file, and then a production file and a development file, each of which import the shared base. Is this possible with Pyramid's config?
Rob Grant
  • 7,239
  • 4
  • 41
  • 61
6
votes
2 answers

Connection resets on (large) file upload

So I'm having a rather vexing issue with file uploads in Pylons that I'm hoping someone might be able to assist me with. Originally I posted the issue here thinking this was an issue with Pylons, but I've since come to conclude that the issue is due…
byron
  • 151
  • 4
6
votes
1 answer

Can I use paster on production site?

I am trying to set up Mediacore (which is a Pylons app) on a production server. The docs suggest either apache mod_fastcgi or mod_wsgi as webserver but I try to avoid apache at any cost because of its being RAM-monger. On the other hand mediacore…
qliq
  • 11,695
  • 15
  • 54
  • 66
6
votes
2 answers

Global paster command not found in virtualenv

I created a custom paster command as described in http://pythonpaste.org/script/developer.html#what-do-commands-look-like. In my setup.py I have defined the entry point like this: entry_points={ 'paste.global_paster_command' : [ 'xxx_new =…
Achim
  • 15,415
  • 15
  • 80
  • 144
5
votes
2 answers

How to deploy a Pyramid app using pserve without installation?

I'm a beginner for Pyramid. I want to deploy Pyramid to my production server. I have a deploy script using Capistrano to do this. set :pid_path, "/var/lib/#{application}" set :log_path, "/var/log/#{application}" namespace :deploy do task…
5
votes
2 answers

Is it possible to launch a Paster shell with some modules pre-imported?

Is it possible to run "paster shell blah.ini" (or a variant thereof) and have it automatically load certain libraries? I hate having to always type "from foo.bar import mystuff" as the first command in every paster shell, and would like the computer…
mike
  • 46,876
  • 44
  • 102
  • 112
5
votes
1 answer

inheriting config file settings in pyramid

Is a setup like this not possible? production.ini file: [app:main] use = egg:my_project ... various settings ... [server:main] ... development.ini file: [app:main] use = config:production.ini#main ... override some production settings ... Then…
lostdorje
  • 6,150
  • 9
  • 44
  • 86
5
votes
1 answer

How to debug long running python scripts or services remotely?

Pretty much what the title says, I would like to be able to connect to a python process running under paster or uwsgi and utilize pdb functionality.
Tony
  • 2,037
  • 3
  • 22
  • 22
5
votes
2 answers

Upgrading Pyramid/SQLAlchemy web apps

I've got a standard run of the mill Pylons Pyramid application, that uses SQLAlchemy for its database persistence. I have set up an SQLAlchemy-migrate repo and have it functioning, but I really want to have the ability to use paster to upgrade and…
X-Istence
  • 16,324
  • 6
  • 57
  • 74
5
votes
4 answers

Getting a PasteScript error when I try to serve an existing Pylons app

I'm trying to serve an existing Python 2.5 Pylons application on OS X Snow Leopard. I've already installed Python 2.5 and set it as the default Python installation, installed paster, and installed the version of Pylons the app needs (0.9.6.1) as…
Sarah
  • 516
  • 10
  • 35
4
votes
2 answers

Plone/Paster - What could cause "paster addcontent dexterity_content" to not work?

I'm trying to use paster to create a dexterity content type. I did a new standalone installation of Plone 4.3.4 in a target folder that's different from the one I was previously working with so it was buildout-cache would be clean. The OS I am using…
Patrick Downey
  • 965
  • 8
  • 13
4
votes
0 answers

Why pydevd.settrace() called in the global scope of a module doesn't work?

I'm using PyCharm 3.1.1 IDE, Pyramid 1.4.5 web framework and I test my web app using web server that comes with PasteScript 1.7.5 package. I placed pydevd.settrace() call in the global scope of middleware.py module but this does not work –…
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
4
votes
2 answers

CKAN Install: paster error

Installing CKAN locally on OSX 10.9, based on http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html. I've created and activated the python virtualenv and now need to create a CKAN config file: $ paster make-config ckan…
dotlineform
  • 43
  • 1
  • 3
1
2 3 4 5 6 7 8