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

Last updated: June 26,2024

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

This guide let you learn how to install python3-flask-wtf-decorators.noarch on Fedora 34

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

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

This guide let you learn how to uninstall python3-flask-wtf-decorators.noarch on Fedora 34:

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

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

Last metadata expiration check: 5:32:47 ago on Tue Sep 6 02:10:55 2022.
Available Packages
Name : python3-flask-wtf-decorators
Version : 0.1.2
Release : 0.4.20200715.7fa5a26.fc34
Architecture : noarch
Size : 13 k
Source : python-flask-wtf-decorators-0.1.2-0.4.20200715.7fa5a26.fc34.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