Skip to main content

Falcon filtering helper

Project description Updates

A small falcon hook to parse filtering elements from the request.


The easiest way to use this hook is the following:

def on_get(self, req, resp, user):
    # Here req['context']['filters'] is set

The Hook will look in the query parameters for parameters looking like filter[key]=value.

It will create a filters dict into the request context accessible at req.context['filters']. Inside this dict the key will be the one extracted from between the brackets. i.e. key in the example above.

Configuration options

One parameter can be passed to the hook:

  • filtering_key : The base name of the key used for the filters. Default: filter.


def on_get(self, req, resp, user):
    # Get request

Project details

Download files

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

Files for falcon-filtering, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size falcon_filtering-0.0.1-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size falcon_filtering-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page