Skip to main content

FLASK REQUEST PRE PROCESSOR

Library to preprocess Flask app request generically with vanilla flask or with any other flask packages eg:flask_restful

Removes the need boilerplate code for extracting and type validating and type cast of request payload from rest api endpoint so that the endpoint can purely focus on the core logic implementation

All the extracted, validated, type casted, and/or aliased parameters will be passed to the endpoint as keyword arguments

Installation

pip install Flask-RequestPreProcessor

Dependencies

python>=3.6
Flask>=1.1.*
funcargpreprocessor==0.9.*

Usage

Simple GET request

from flask_requestpreprocessor import parse_request_query_param, DateArg

@parse_request_query_param(
    {
        'pageNo':{'data_type':int, 'alias':'page_no', 'min_val':1 }
        ,'count':{'data_type':int, 'value_list':[10,20,30,50,100] }
        , 'signedUpDate':{'data_type':DateArg('%Y-%m-%d'), 'alias':'signed_up_date'}
        , 'filterCondition2':{....}
        .....
    }
)
def get_user_list(page_no=1, count=10, signed_up_date=None, **other_filter_conditions):
    pass

Detailed Parser definition

Metadata

Release files for Flask-RequestPreProcessor 0.2.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 Flask-RequestPreProcessor 0.2.0
File Size Uploaded Provenance Actions
Flask-RequestPreProcessor-0.2.0.tar.gz 2.8 kB Without provenance Details for Flask-RequestPreProcessor-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-RequestPreProcessor 0.2.0
File Interpreter ABI Platform Actions
Flask_RequestPreProcessor-0.2.0-py3-none-any.whl Python 3 none any Details for Flask_RequestPreProcessor-0.2.0-py3-none-any.whl

Total release size: 7.1 kB

Release files / Flask-RequestPreProcessor-0.2.0.tar.gz

Download URL Flask-RequestPreProcessor-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f033929f19acd04191d120fd99b9991a875c6e235693a0329d80c8a30051785d
BLAKE2b-256 checksum
How to use checksums
544f55fd40f8d1fdbc26651b855045db6c42bf1edae162896ccd612b0a69117c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / Flask_RequestPreProcessor-0.2.0-py3-none-any.whl

Download URL Flask_RequestPreProcessor-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3b1242957a581b09fb2febfda3d267f8fea5793f8c38e65b206e86da4960e1c
BLAKE2b-256 checksum
How to use checksums
6a44a847164d143f0b9dde6de44d8de41da05b16f79d6dfb97ad9ac708105009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Security for Flask-RequestPreProcessor 0.2.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.2.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