It’s possible to use request.view_args.
The documentation defines it this way:
A dict of view arguments that matched the request.
Here’s an example:
@app.route("/data/<section>")
def data(section):
assert section == request.view_args['section']