{"id":15523365,"url":"https://github.com/xsleonard/flask-formencode","last_synced_at":"2025-04-11T02:52:49.498Z","repository":{"id":11195424,"uuid":"13577194","full_name":"xsleonard/Flask-FormEncode","owner":"xsleonard","description":"Flask extension for the form processing \u0026 validation library FormEncode","archived":false,"fork":false,"pushed_at":"2013-10-17T01:29:00.000Z","size":208,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T02:42:29.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xsleonard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-15T00:53:35.000Z","updated_at":"2015-10-20T18:23:17.000Z","dependencies_parsed_at":"2022-08-31T05:01:18.966Z","dependency_job_id":null,"html_url":"https://github.com/xsleonard/Flask-FormEncode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsleonard%2FFlask-FormEncode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsleonard%2FFlask-FormEncode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsleonard%2FFlask-FormEncode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsleonard%2FFlask-FormEncode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xsleonard","download_url":"https://codeload.github.com/xsleonard/Flask-FormEncode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333182,"owners_count":21086193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:44:59.793Z","updated_at":"2025-04-11T02:52:49.476Z","avatar_url":"https://github.com/xsleonard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-FormEncode\n================\n\nFlask extension for the form processing \u0026amp; validation library [FormEncode](http://www.formencode.org/en/1.2-branch/)\n\n[![PyPI version](https://badge.fury.io/py/Flask-FormEncode.png)](http://badge.fury.io/py/Flask-FormEncode)\n[![Build Status](https://travis-ci.org/xsleonard/Flask-FormEncode.png)](https://travis-ci.org/xsleonard/Flask-FormEncode)\n[![Coverage Status](https://coveralls.io/repos/xsleonard/Flask-FormEncode/badge.png?branch=master)](https://coveralls.io/r/xsleonard/Flask-FormEncode?branch=master)\n\n[Read the complete docs](http://pythonhosted.org/Flask-FormEncode/)\n\nFlask-FormEncode supports python 2.6, 2.7 and pypy. Python 3 support will be added once FormEncode supports it (expected next release).\n\nTo run the tests, do `python setup.py test`.\n\nExample:\n\n```python\n# app.py\nfrom flask import Flask, redirect, flash, abort\nfrom flask.ext.formencode import Form\nfrom formencode import Invalid, Schema\nfrom formencode.validators import UnicodeString\n\napp = Flask(__name__)\n\nclass LoginSchema(Schema):\n    username = UnicodeString(strip=True, not_empty=True)\n\n@app.route('/')\ndef index():\n    return 'Hello'\n\n@app.route('/login', methods=['POST'])\ndef login():\n    try:\n        form = Form(LoginSchema)\n    except Invalid as e:\n        flash(e.unpack_errors())\n        abort(400)\n    else:\n        flash('Welcome {0}'.format(form['username']))\n    return redirect(url_for('index'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxsleonard%2Fflask-formencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxsleonard%2Fflask-formencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxsleonard%2Fflask-formencode/lists"}