Hug vs Sapper: What are the differences?
What is Hug? New Python REST API and CLI micro-framework. Hug aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development.
What is Sapper? A lightweight web framework written in Rust. Sapper focuses on easy of use. It is alpha now and only compiled with rust nightly.
Hug and Sapper can be categorized as "Microframeworks (Backend)" tools.
Hug and Sapper are both open source tools. It seems that Hug with 5.8K GitHub stars and 344 forks on GitHub has more adoption than Sapper with 562 GitHub stars and 39 GitHub forks.
What is Hug?
What is Sapper?
Need advice about which tool to choose?Ask the StackShare community!
Why do developers choose Sapper?
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using Hug?
What are the cons of using Sapper?
What companies use Sapper?
Sign up to get full access to all the companiesMake informed product decisions
Unlike our frontend, we chose Flask, a microframework, for our backend. We use it with Python 3 and Gunicorn.
One of the reasons was that I have significant experience with this framework. However, it also was a rather straightforward choice given that our backend almost only serves REST APIs, and that most of the work is talking to the database with SQLAlchemy .
We could have gone with something like Hug but it is kind of early. We might revisit that decision for new services later on.