Sanic: Is there any extension like flask-wtf?

Created on 15 Apr 2017  路  4Comments  路  Source: sanic-org/sanic

Is there any extension like flask-wtf? If not, how do you deal with forms?

enhancement help wanted

Most helpful comment

I cooked up this, Sanic-WTF , it is pip-installable. If it works, it's pure miracle 馃構

All 4 comments

All of the known existing extensions are here: https://github.com/channelcat/sanic/blob/master/docs/sanic/extensions.md

I don't see any related to forms. Would be great if you or someone else wanted to contribute this.

I generate a form and pull data from it:
https://github.com/stopspazzing/Sanic-Server-with-MDL-Blog-Template/blob/master/main.py#L62-L85

specifically line 80:
https://github.com/stopspazzing/Sanic-Server-with-MDL-Blog-Template/blob/master/main.py#L80

I'm sure there are other ways of doing it... and is a work in progress. A Sanic form extension would be useful. Maybe I'll look into porting it. Not a pro in Python, so...

I cooked up this, Sanic-WTF , it is pip-installable. If it works, it's pure miracle 馃構

Awesome work @pyx! Closing this now.

Was this page helpful?
0 / 5 - 0 ratings