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.15 (2019-01-03)

  • Remove deprecation warning for pyramid >= 1.9

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


Download files

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

Source Distribution

pyramid_yards-0.16.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file pyramid_yards-0.16.tar.gz.

File metadata

  • Download URL: pyramid_yards-0.16.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pyramid_yards-0.16.tar.gz
Algorithm Hash digest
SHA256 eae92549f5fc7329f7650de84b277c081f575c24f4a3aa036112f006d6bc43da
MD5 e7c3e6bf542e40a2fa857348b40ae6e0
BLAKE2b-256 eb9818df5eed14004e7235bfdf15c8d0cb167aee275c05a79df9fce00356ad97

See more details on using hashes here.

Supported by

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