Skip to main content

Pyramid Request Parameter Validation

Project description

pyramid_yards

An http parameters validator for the Pyramid Web framework

It adds a “yards” attribute to the pyramid request object, containing every validated parameter using colander schemas.

This lib has been inspired by the cornice validated property, but the implementation differ.

Changelog

0.14 (2017-09-12)

  • Add i18n support for colander message base on locale of pyramid request, requires the locale negociator.

0.13 (2016-10-28)

  • Fix the DISABLE_CSRF_CHECK attribute

0.12 (2016-10-27)

  • Fix DISABLE_CSRF_CHECK attribute for schema per http verb

0.11 (2016-07-25)

  • Fix sequence deserialization

0.10 (2016-01-05)

  • Add a schema per http verb

0.9 (2015-09-23)

  • Fix sequence validator

0.8 (2015-09-21)

  • Fix colander.drop deserialization in sequence member

0.7 (2015-07-06)

  • Fix packaging for locales

0.6 (2015-07-06)

  • Check the CSRF (active by default!)
You can use the settings pyramid_yards.check_csrf_token to disable it globally (while writing json API), or locally by adding the attribute DISABLE_CSRF_CHECK = False in the request_schema

0.5 (2015-06-02)

  • Ensure request.yards dict contains every described fields

0.4 (2014-12-24)

  • Use request.yards as a dict mapping

0.3 (2014-12-15)

  • Fix support for sequence

0.2 (2014-12-04)

  • Fix usage of colander.drop

0.1 (2014-12-03)

  • Initial Release

Project details


Release history Release notifications

This version
History Node

0.14

History Node

0.13

History Node

0.11

History Node

0.10

History Node

0.9

History Node

0.8

History Node

0.7

History Node

0.5

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_yards-0.14.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None Sep 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page