Skip to main content

Falcon Query Parameter Verifier

A simple falcon hook to check if a request contains all required query parameters.


Installation / Requirements

Installation:

PyPi

pip install falcon_params_verifier

.whl

A .whl is provided in the releases tab in Github.

Sample Usage

Sample code

import falcon
import falcon_params_verifier 
from falcon_params_verifier import ParamVerifier # This can also be used.

class SampleResource(object):
    def __init__(self):
        self._required_params = [
            "userId",
        ]
    # Add the hook
	@falcon.before(falcon_params_verifier.ParamVerifier(self._required_params))
    def on_get(self, req, resp):
        req.media = {
            "message": "Whoo hoo, you made a proper request!"
        }

If a query parameter is missing, the module will automatically raise an falcon.HTTPBadRequest.

Metadata

Release files for falcon-params-verifier 0.1.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 falcon-params-verifier 0.1.0
File Size Uploaded Provenance Actions
falcon_params_verifier-0.1.0.tar.gz 2.3 kB Without provenance Details for falcon_params_verifier-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for falcon-params-verifier 0.1.0
File Interpreter ABI Platform Actions
falcon_params_verifier-0.1.0-py3-none-any.whl Python 3 none any Details for falcon_params_verifier-0.1.0-py3-none-any.whl

Total release size: 5.1 kB

Release files / falcon_params_verifier-0.1.0.tar.gz

Download URL falcon_params_verifier-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2846ad38bc07dc88def989ba67b31279b7470acc0b4ae513abf28f2413f4f1b2
BLAKE2b-256 checksum
How to use checksums
01c2f272f073562cc5a7de3485b20f66b2b6472990699515fc014f06db5f9dd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

Release files / falcon_params_verifier-0.1.0-py3-none-any.whl

Download URL falcon_params_verifier-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49278a57a0e63e098c9b32a0cfa0c32bd1bdf5c51561deb587ae1db79b70053e
BLAKE2b-256 checksum
How to use checksums
880faaea0ca0ac4d350a09e598a0fcf5a6644ca6b994d89691847007dbf2840c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

Security for falcon-params-verifier 0.1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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