No project description provided
Project description
Flask Parameters
Inject URL query parameters as arguments into Flask route functions.
Documentation • Key Features • Built Using • Usage • License
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
122c624fafec7d3a781a459f339a286b0d27f179ccbea760a27eea4961e369c9
|
|
| MD5 |
50938a1dd591b03997fa2a99e1ecfd55
|
|
| BLAKE2b-256 |
68832bd57bae00ec48b67e052250ecd4e90e0c54558320368ef10271d7aa6b24
|
File details
Details for the file flask_parameters-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flask_parameters-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee41a4e42ac015ca4efaba8c041fba5a01c53bece8b091a9f6875ad90033889d
|
|
| MD5 |
565d5c4a56f50d43b10acc95dfb9a6a4
|
|
| BLAKE2b-256 |
9b71f08287390b92a9a59bc8ccdd0c4679a61840d2be54c18dce460e20b9730b
|