Skip to main content

No project description provided

Project description

Flask Parameters

Inject URL query parameters as arguments into Flask route functions.


DocumentationKey FeaturesBuilt UsingUsageLicense

Key Features

  • Inject query parameters into your route functions
  • Type checking based on the signature of the function

Built Using

Installation

pip install flask-parameters

Usage

from flask_parameters import Flask

app = Flask(__name__)


@app.route("/foo")
def foo(arg, kwarg = 123) -> dict:
    return {"arg": arg, "kwarg": kwarg}


@app.route("/strict_foo")
def strict_foo(arg: str, kwarg: int = 123) -> dict:
    return {"arg": arg, "kwarg": kwarg}

License

MIT

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

flask_parameters-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_parameters-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file flask_parameters-0.1.0.tar.gz.

File metadata

  • Download URL: flask_parameters-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for flask_parameters-0.1.0.tar.gz
Algorithm Hash digest
SHA256 122c624fafec7d3a781a459f339a286b0d27f179ccbea760a27eea4961e369c9
MD5 50938a1dd591b03997fa2a99e1ecfd55
BLAKE2b-256 68832bd57bae00ec48b67e052250ecd4e90e0c54558320368ef10271d7aa6b24

See more details on using hashes here.

File details

Details for the file flask_parameters-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_parameters-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee41a4e42ac015ca4efaba8c041fba5a01c53bece8b091a9f6875ad90033889d
MD5 565d5c4a56f50d43b10acc95dfb9a6a4
BLAKE2b-256 9b71f08287390b92a9a59bc8ccdd0c4679a61840d2be54c18dce460e20b9730b

See more details on using hashes here.

Supported by

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