Buy Tickets
Starting from 350€
Support unavailable
Please try again later

Writing a Pyramid application

by Daniel Nouri for EuroPython 2012

Pyramid is a very general open source Python web framework. As a framework, its primary job is to make it easier for a developer to create an arbitrary web application. The type of application being created isn’t really important; it could be a spreadsheet, a corporate intranet, or a social networking platform. Pyramid is general enough that it can be used in a wide variety of circumstances.

In this tutorial you will build from scratch a simple app in which users each have their individual workspaces, and can invite other users to collaboratively edit content.

While writing the application, you will learn about many aspects of Pyramid. Concretely, you will learn how to:

  • Install Pyramid within a virtualenv
  • Use Pyramid’s scaffolds to quickstart your project
  • Work efficiently with templates (using Chameleon)
  • Create models and views
  • Write your own user authentication
  • Make use of Pyramid’s Access Control Lists support
  • Use Pyramid’s Traversal to map URL paths to your objects
  • Create forms using the deform form library
  • Work with the ZODB, a convenient database to store your Python objects in.

The tutorial will be split into steps with each step accomplishing a certain set of goals. Documented code for all the individual steps, including the final application, will be made available to participants.

Prerequisites

If you’re on Mac OSX or Windows and you don’t have Python 2.6 or Python 2.7 installed, you might want to run through the Pyramid installation instructions prior to the tutorial.

Material

Code and documentation for the tutorial is available on GitHub: https://github.com/dnouri/pyramid-tutorial

in on Friday 6 July at 09:00 See schedule

Video

Do you have some questions on this talk? Leave a comment to the speaker!

New comment

Download slide (ZIP Archive)
(Size: 874.3 KB)

Language
EN
Duration
240 minutes

Tagged as

framework pyramid
Our Sponsors
Spotify
Python Experts
Personnel development with 360° feedback
SSL Matrix
Wanna sponsor?