How to Install and Uninstall python3-flask-wtf-decorators.noarch Package on Fedora 39

Last updated: November 28,2024

1. Install "python3-flask-wtf-decorators.noarch" package

This guide covers the steps necessary to install python3-flask-wtf-decorators.noarch on Fedora 39

$ sudo dnf update $ sudo dnf install python3-flask-wtf-decorators.noarch

2. Uninstall "python3-flask-wtf-decorators.noarch" package

This is a short guide on how to uninstall python3-flask-wtf-decorators.noarch on Fedora 39:

$ sudo dnf remove python3-flask-wtf-decorators.noarch $ sudo dnf autoremove

3. Information about the python3-flask-wtf-decorators.noarch package on Fedora 39

Last metadata expiration check: 0:38:10 ago on Thu Mar 7 17:44:52 2024.
Available Packages
Name : python3-flask-wtf-decorators
Version : 0.1.2
Release : 0.12.20200715.7fa5a26.fc39
Architecture : noarch
Size : 14 k
Source : python-flask-wtf-decorators-0.1.2-0.12.20200715.7fa5a26.fc39.src.rpm
Repository : fedora
Summary : Use decorators to validate forms
URL : https://github.com/simpleapples/flask-wtf-decorators
License : MIT
Description : Flask-WTF-Decorators is easy to use. You can define a view that requires
: validation.
:
: from flask-wtf-decorators import FormValidator
:
: form_validator = FormValidator()
:
: @form_validator.validate_form(TestForm)
: @app.route('/', methods=['GET', 'POST'])
: def index(form):
: pass
:
: You can tell Flask-WTF-Decorators what to do when a form is illegal.
: To do this you should provide a callback for error_handler.
:
: @form_validator.error_handler
: def error_handler(errors):
: return jsonify({'errors': errors}), 400