Skip to main content

SQLAlchemy-backed username/password authentication for the Pyramid web framework.

What You Get

  • Versioned schema with stucco_evolution

  • SQLAlchemy-mapped User, Group, and Settings classes

  • BCRYPT password encryption with cryptacular

  • Pyramid views to login and logout

  • Traversal, not routes

  • Jinja2 templates for the views

  • Uni-Form CSS themed login form

  • YUI 3 CSS in the base template

  • 99% test coverage

What You Don’t Get

  • Any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.

Requirements

It’s easy enough to add the stucco_auth views to your application by calling:

from pyramid.config import Configurator
config = Configurator(...)
config.include('stucco_auth.config')

Unfortunately, stucco_auth requires many things from a host Pyramid application before it will work properly:

  • A configured authentication and authorization policy. Login and logout views don’t make sense otherwise.

  • A transaction-managed SQLAlchemy session made available as request.db

  • stucco_auth’s schema instantiated into that database

  • request.session for flash messages

  • Jinja2 templating

  • A stucco_auth.interfaces.IAuthRoot instance in the resource tree. login/ and logout/ are resolved relative to this object.

The demo application, stucco_auth.main(), provides one example of how to set this up.

If you have any questions, please ask DanielHolth in IRC or on one of the Pylons mailing lists.

0.7.0

  • Generate random password in a Python 3 compatible way.

0.6.0

  • Lengthen username, email fields

0.5.0

  • update AnonymousUser class (has no table) to be __abstract__ for compatibility with newer SQLAlchemy.

0.4.1

  • don’t specify paster_plugins. need to re-evaluate template project.

0.4

  • upgrade to a normal version numbering scheme

  • generalize ‘persistent random secret’ code

0.3e-4

  • fix MANIFEST.in to include the .jinja2 templates

0.2e-4

  • update for stucco_evolution >= 0.33

0.1e-6

  • 99% test coverage

0.1

  • Remove everything except the most basic user/groups/login functionality

0.0

  • Initial version

Release files for stucco-auth 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stucco-auth 0.7.1
File Size Uploaded
stucco_auth-0.7.1.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stucco-auth 0.7.1
File Interpreter ABI Platform
stucco_auth-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size:57.3 kB

Release files / stucco_auth-0.7.1.tar.gz

Download URL stucco_auth-0.7.1.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dd023bd781f32260044a0062c6cab288a17ea51b258fb6ec662fc41e9d7b8292
BLAKE2b-256 checksum
How to use checksums
6f9496715e277fa664ebff8bfb350f2c2ba2554b4c963e9c46a5c43eeccbb298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / stucco_auth-0.7.1-py3-none-any.whl

Download URL stucco_auth-0.7.1-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33dff1d8fa067bebc0088234c68f0bd68293674f645d8f0d5ada703f98dc55d0
BLAKE2b-256 checksum
How to use checksums
a10e256c101003195ecbc799d64b1d0fdceea253d681da598584936ee8d837cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

1 release file

0.4.1

1 release file

0.4

1 release file

0.3e-4

1 release file

0.2e-5

1 release file

0.1e-6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page