Skip to main content

Introduction

pyramid_exclusive_request_methods enables one to add a view config whose view handles all the HTTP request methods and responds with 405 Method Not Allowed for the request methods not explicitly specified in the configuration.

Synopsis:

from pyramid_exclusive_request_methods import exclusive_view_config

@view_config(route_name='foo', request_method=['GET'])
def foo(context, request):
    pass

@exclusive_view_config(route_name='bar', request_method='GET')
def bar(context, request):
    pass

c = Configurator(...)
c.includeme('pyramid_exclusive_request_methods')

Contributors

Moriyoshi Koizumi <mozo@mozo.jp>

Changelog

0.0.0

  • Initial upload to pypi.

0.0.1

  • Switch to add_exclusive_view directive and exclusive_view_config decorator style, because Exclusively marker doesn’t work as expected due to the limitation of Pyramid.

0.0.2

  • Bump due to the packaging failure.

0.0.3

  • Fix a bug that it doesn’t work with view classes.

0.0.4

  • Fix a bug that it doesn’t work with view_defaults.

0.0.5

  • Fix a bug that it doesn’t work when the views forms a multiview.

Metadata

Release files for pyramid-exclusive-request-methods 0.0.5

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-exclusive-request-methods 0.0.5
File Size Uploaded Provenance
pyramid_exclusive_request_methods-0.0.5.tar.gz 5.3 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for pyramid-exclusive-request-methods 0.0.5
File Interpreter ABI Platform
pyramid_exclusive_request_methods-0.0.5-py3-none-any.whl Python 3 none any Details
pyramid_exclusive_request_methods-0.0.5-py2-none-any.whl Python 2 none any Details

Total release size: 18.6 kB

Release files / pyramid_exclusive_request_methods-0.0.5.tar.gz

Download URL pyramid_exclusive_request_methods-0.0.5.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
561371bd23a71591410ff83385e4358dec66c0d38e354a940c596ffb7a81dc22
BLAKE2b-256 checksum
How to use checksums
dabfe5aabf961bf43830efbe31082258b8c315a6c18ad9ef2445fd5bf9d81b62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyramid_exclusive_request_methods-0.0.5-py3-none-any.whl

Download URL pyramid_exclusive_request_methods-0.0.5-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91c4a1e613d23eaed65cc4e5a50eaac0ef265f8063176fa6842bf476de7ff952
BLAKE2b-256 checksum
How to use checksums
a1524606d0a1a170c8d1b57a5013f6580dfaec3ae1e7d88b44002e4f06b44e4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyramid_exclusive_request_methods-0.0.5-py2-none-any.whl

Download URL pyramid_exclusive_request_methods-0.0.5-py2-none-any.whl
Size 6.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5b957b7de04c8cd655917bb781b004a26ddc40d280a3ec47bc19104b7f6aa628
BLAKE2b-256 checksum
How to use checksums
137b378af139d503f7fd4a7a78abd315cdd803ffb1cea650e2e937b53a24410f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyramid-exclusive-request-methods 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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