Skip to main content

pyramid_cubicweb is one specific way of integrating CubicWeb with a Pyramid web application.

Features

  • provides a default route that let a cubicweb instance handle the request.

Usage

To use, install pyramid_cubicweb in your python environment, and then include the package:

config.include('pyramid_cubicweb')

Configuration

Requires the following INI setting / environment variable:

  • cubicweb.instance / CW_INSTANCE: the cubicweb instance name

Authentication cookies

When using the pyramid_cubicweb.auth (CubicWeb AuthTkt authentication policy), which is the default in most cases, you may have to configure the behaviour of these authentication policies using standard’s Pyramid configuration. You may want to configure in your pyramid.ini:

Session Authentication:

This is a AuthTktAuthenticationPolicy so you may overwrite default configuration values by adding configuration entries using the prefix cubicweb.auth.authtkt.session. Default values are:

cubicweb.auth.authtkt.session.hashalg = sha512
cubicweb.auth.authtkt.session.cookie_name = auth_tkt
cubicweb.auth.authtkt.session.timeout = 1200
cubicweb.auth.authtkt.session.reissue_time = 120
cubicweb.auth.authtkt.session.http_only = True
cubicweb.auth.authtkt.session.secure = True
Persistent Authentication:

This is also a AuthTktAuthenticationPolicy. It is used when persistent sessions are activated (typically when using the cubicweb-rememberme cube). You may overwrite default configuration values by adding configuration entries using the prefix cubicweb.auth.authtkt.persistent. Default values are:

cubicweb.auth.authtkt.persistent.hashalg = sha512
cubicweb.auth.authtkt.persistent.cookie_name = pauth_tkt
cubicweb.auth.authtkt.persistent.max_age = 3600*24*30
cubicweb.auth.authtkt.persistent.reissue_time = 3600*24
cubicweb.auth.authtkt.persistent.http_only = True
cubicweb.auth.authtkt.persistent.secure = True

Please refer to the documentation for more details (available in the docs directory of the source code).

Release files for pyramid-cubicweb 0.8.0

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

Source distribution (sdist)

Source distribution for pyramid-cubicweb 0.8.0
File Size Uploaded
pyramid-cubicweb-0.8.0.tar.gz 18.4 kB Details

Release files / pyramid-cubicweb-0.8.0.tar.gz

Download URL pyramid-cubicweb-0.8.0.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2ec36a4ced10a8b285cbea414d420e61fa25e12cdf7a2f3f353c6a444f86ef9
BLAKE2b-256 checksum
How to use checksums
cbc110c75f0413ee5b20353201aabae928c35719a525813b3448c9de6ee8a08a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.8.0 This release

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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