Pylons project

From Wikipedia, the free encyclopedia
Pylons Project
Pylons Project logo on transparent background.png
Type of site
Python frameworkdevelopment
Available in English
Owner Open source
Editor Anonymous
Commercial No
Registration None
Launched December 27, 2010
Current status Active

Pylons Project is an open source organization that develops a set of web application technologies written in Python. Initially the project was a single web framework called Pylons, but after the merger with the repoze.bfg framework under the new name Pyramid, the Pylons Project now consists of multiple related web application technologies.

Pylons Web Framework[edit]

Adicionar ao Google AgendaPylons Framework
Developer(s) Ben Bangert, James Gardner
Initial release September 2005; 11 years ago[1]
Stable release
1.0.2[2] / July 21, 2015; 22 months ago
Development status maintenance-only mode
Written in Python
Operating system Cross-platform
Type Web application framework
License BSD license

Pylons Framework is an open source Web application framework written in Python. It makes extensive use of the Web Server Gateway Interface standard to promote reusability and to separate functionality into distinct modules.[3]It is strongly influenced by Ruby on Rails: two of its main components, Routes and WebHelpers, are Python reimplementations of Rails features.


Pylons is well known for having a near-complete stack of third-party tools, eschewing the “not–invented–here” phenomenon.

Installation, dependencies, and setup[edit]

The official installation method of Pylons is through EasyInstall via the Python Package Index (PyPI), and most of the additional tools are typically installed the same way. EasyInstall also handles package dependencies when relevant. Some distributions could also package Pylons and Paste, but it is likely that any distribution’s packages would lag the official distribution. Pylons may also be installed by hand by renaming its .egg file to .zip and extracting the contents.

Paste is used for project setup, testing, and deployment. Using the common INI configuration format, Paste allows for multiple “profiles”, so that developers can run development and deployment setups from the same codebase without revealing sensitive parts of Pylons, such as the interactive debugger, to production users.

URL dispatch[edit]

Currently the only widely used URL dispatcher for Pylons is Routes, a Python reimplementation of Ruby on Rails‘ URL dispatching, although any WSGI-compatible URL dispatcher can be used. While Routes is a separate library, it was developed for use in Pylons and its development remains closely in sync with Pylons.

HTML generation[edit]

Another piece of Rails adapted for Pylons is WebHelpers, which provides URL mapping based on the Routes configuration. WebHelpers also provides some utility functions for generating JavaScript code making use of the and Prototype libraries.

FormEncode and FormBuild are used for HTML form validation and generation; there has been some use of Mako for form generation using Mako’s inheritance model.


Myghty was the default Pylons templating language, but as of version 0.9.6 it has been replaced by Mako.[4] Both templating languages are text-based (as opposed to XML-based), and support includes, inheritance and embedding arbitrary Python code.

Because of Pylons’ loosely coupled layers, other templating languages can be used as well. Genshi, an XML-based templating language, can be used in lieu of either Mako or Myghty.[5]

Database abstraction and object-relational mapping[edit]

Pylons has no default database library. Both SQLObject and SQLAlchemy are known to be used.

Merger with repoze.bfg and birth of Pyramid Web Framework[edit]

Pylons has developed into the Pylons Project, and the old code from Pylons 1.0 is now in maintenance-only mode. However, pursuant to the project’s merger with repoze.bfg since November 2010, newer versions of Pylons are actually different from the original Pylons 1.0. Pylons developers initially planned to rewrite certain portions of the code, but they observed that the new code was approximating repoze.bfg, which led to the merger of Pylons and repoze.bfg.[6][7] This led to repoze.bfg (a part of the Repoze Python-based web framework) to become rebranded and relaunched as the Pyramid web framework.[8]


Adicionar ao Google AgendaPyramid
Pyramid web framework logo on transparent background.png
Developer(s) Chris McDonough, Ben Bangert, Michael Merickel, Bert JW Regeer, Steve Piercy
Initial release July 8, 2008; 8 years ago[9]
Stable release
1.8.4[10] / June 11, 2017; 13 days ago
Written in Python
Operating system Cross-platform
Type Web application framework
License BSD License

Pyramid is an open source web framework written in Python and is based on WSGI. It is a minimalistic web framework inspired by Zope, Pylons and Django.[11]

Originally called “repoze.bfg”, Pyramid gathered attention mostly in the Zope[12] and Plone community as the Open Society Institute‘s KARL project migrated from Plone to BFG.[13] In 2010 it was announced that the Pylons framework will move over to using BFG as a base in version 1.5.[14] As a result of the inclusion of BFG into the Pylons project, BFG was renamed Pyramid.[15]


Pyramid is a minimalistic, platform-independent web framework. It is persistence agnostic and is integrated both with SQL databases via SQLAlchemy and with the Zope Object Database, as well as other NoSQL databases, such as CouchDB.[11]

Pyramid allows developers to define routes using regular expressions that map to objects. Like its fellow framework Zope, Pyramid also allows hierarchical object traversal, where each part of a URL is an object containing other objects, in a way that is similar to folders in a filesystem.[16]

See also[edit]


  1. Jump up^ History of Pylons
  2. Jump up^ Pylons Changelog
  3. Jump up^ The mod_wsgi project includes both Pylons and Pyramid in its list of supported major Python web frameworks.
  4. Jump up^ Haas, Christoph Beginning Pylons. Retrieved July 5, 2007
  5. Jump up^ Genshi Wiki Pylons with Genshi Retrieved July 5, 2007
  6. Jump up^ Pylons Project FAQ. URL:
  7. Jump up^ Notes on the Pylons and repoze.bfg merger. URL:
  8. Jump up^ About Pyramid. URL:
  9. Jump up^ “Pyramid Change History”. The Pyramid Web Framework. Pylons Project. Retrieved 10 March 2017.
  10. Jump up^ “Pyramid Change History”.
  11. ^ Jump up to:a b Chris McDonough. “repoze.bfg introduction”. Retrieved 2010-09-21.
  12. Jump up^ Gary Poster (2010-09-17). “Zope Summit, DZUG, repoze.bfg”. Retrieved 2010-09-21.
  13. Jump up^ Thomas Moroz, Chris Rossi & Calvin Hendryx-Parker (2009-10-28). KARL – large-scale Knowledge Management. Budapest, Hungary: Plone Conference 2009. Retrieved 2010-09-23.
  14. Jump up^ Ben Bangert (2010-09-18). “Emails explaining the Pylons 2 structure”. Retrieved 2010-09-21.
  15. Jump up^ “repoze.bfg is now Pyramid”. Retrieved 2011-01-03.
  16. Jump up^ Wichert Akkerman (2009-10-28). Lessons from other frameworks. Budapest, Hungary: Plone Conference 2009. Event occurs at 25:50. Retrieved 2010-09-21.

Further reading[edit]

External links[edit]


Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do

Você está comentando utilizando sua conta Sair /  Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )


Conectando a %s