5 ms·
How does this compare with Flask?
by aportnoy 8y ago
How does this compare with Flask?
- Kpourdeilami 8y agoIt seems to come with ORM and request validation, metrics, etc. built-in. Flask is fast for getting started but you end up rebuilding most of the things this framework does on your own as your application grows. It seems like a good middle ground between Flask (minimal and no batteries included) and Django (bloated but very powerful).
- scrollaway 8y agoI don't see the ORM or metrics in the docs. After a cursory look at it, this seems like an interesting, modern replacement for Flask. Types-first frameworks are interesting, as they're still very rare right now.
- tyingq 8y ago"The molten.contrib package contains various functionality commonly required by APIs in the real world such as configuration files, prometheus metrics, request ids, sessions, SQLAlchemy, templating, websockets and more."
- scrollaway 8y agoAh! Missed that, thank you :)
- chrsstrm 8y agoIt looks like there's no template rendering so it would seem that Molten:Flask :: Restify:Express in that it is mostly for build an API.
- Bogdanp 8y agoAuthor here - while molten is API-first, there is built in support for things like sessions[1] and templates[2] for when you need them. The docs could definitely do a better job of highlighting them, though. [1]: https://moltenframework.com/reference.html#sessions https://moltenframework.com/reference.html#sessions [2]: https://moltenframework.com/reference.html#templates https://moltenframework.com/reference.html#templates