Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install pyramid-auth

How to install pyramid_auth

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyramid-auth
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1 Available View build log
Lastest release
version 0.1 on Jan 9th, 2014

This is a plugin for pyramid which provides a simple authentication system. It generates the form and the urls automatically:

  • /login: display the login form
  • /logout: logout the user
  • /forbidden: the user is redirected to this page when he is logged but doesn't have the right permission to see a page.

In a future we will be able to defined the base of the urls in the setting file.


Add pyramid_auth in your setup.py in install_requires list

In your .ini file add pyramid_auth to pyramid.includes like this:

pyramid.includes =

In the same file you need to pass the function to validate the login/password like this:

pyramid_auth.validate_function = project.module.validate_password

This function should take in parameters the login and the password, and returns a boolean: True if the password and the login match.


If you want to change the rendering of the template to include your design you can:

  • Create a template in the folder templates/auth of your project named base.mak. Each templates (login, forbidden) inherit from it.
  • Create the login.mak and/or forbidden.mak templates in the folder templates/auth to overwrite the default ones.

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.