Skip to main content

Class-based views for Pyramid

Project description

Pyramid-Classy

Pyramid-Classy is an extension that adds class-based views to Pyramid more simple. Main idea was taken from the Flask-Classy written by Freedom Dumlao.

Documentation: https://github.com/tark-hidden/pyramid_classy

Changelog

0.4.4

  • No more print if debug=True, now it depends on logging in a Pyramid config file.

  • Fixed too long route_name if class view inherit other class.

0.4.2

  • Py3 compatibility support.

0.4

  • IndexView is very useful name, but… Now you can handle a root url with any class you want - with route_base = ‘/’.

  • Some weird bugs has been fixed.

0.3

  • Fixed a terrible bug, that doesn’t allow to define a few routes for the root.

  • Added debug flag. Now you can see routes and their names if you want.

  • Added @view_defaults support. It’s weird, but it didn’t work properly.

0.2

  • Cleaned up code.

  • Now functions in classes accepts only one argument: self. Request variable now is self.request.

0.1

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid-classy-0.4.4.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pyramid-classy-0.4.4.tar.gz.

File metadata

  • Download URL: pyramid-classy-0.4.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.19.0 setuptools/27.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.5.2

File hashes

Hashes for pyramid-classy-0.4.4.tar.gz
Algorithm Hash digest
SHA256 cd157936781501c3425519a35ab3257d85c22bc8822cf980fc805ea52d613758
MD5 aa99cd614e58eab0425fe2318114d42b
BLAKE2b-256 70e3b635970da5577304012bf2ffc8639a47ca8f76ec49834b286fc656a9cd32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page