Comparison
APIFlask vs flasgger vs spectree vs swagger-ui-py
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A lightweight web API framework based on Flask.
Actively maintained. Last release 4 weeks ago, commits in 12 of the last 26 weeks. A safe choice.
pip install apiflaskExtract swagger specs from your flask project
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install flasggerGenerate OpenAPI document and validate request & response with Python annotations.
Actively maintained. Last release 3 months ago, commits in 15 of the last 26 weeks. A safe choice.
pip install spectreeSwagger UI for Python web framework, such as Tornado, Flask, Quart, Sanic and Falcon.
Low maintenance activity. Last release 17 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install swagger-ui-pyIn short
- flasgger is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- spectree is the most used: 260.3K downloads a month.
- Maintenance is comparable: spectree 84, APIFlask 83, swagger-ui-py 21 on Pythie’s Index.
- swagger-ui-py is growing fastest: downloads +39% over the last month.
- Safe default for a new project: spectree.
Side by side
| Metric | APIFlask | flasgger | spectree | swagger-ui-py |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 83 | Pythie’s Index: 18 | Pythie’s Index: 84 | Pythie’s Index: 21 |
| Verdict | Actively maintained | Slowing down | Actively maintained | Low maintenance activity |
| Downloads / month | 244K | 972.4K | 260.3K | 191.7K |
| Downloads, month over month | +19% | +8% | +14% | +39% |
| GitHub stars | 1.1K | 3.7K | 359 | 69 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 3 | 1 | 3 | 4 |
| Last release | Nov 2, 2026 | Jun 10, 2023 | Sep 10, 2026 | Jul 1, 2025 |
| Releases, 12 months | 4 | 0 | 7 | 0 |
| Weeks with commits | 12 / 26 | 0 / 26 | 15 / 26 | 0 / 26 |
| Recent contributors | 12 | 27 | 8 | 11 |
| First release | Jan 2021 | Jul 2015 | Dec 2019 | Oct 2018 |
| Python versions | 3.9 – 3.14 | 3.6 | 3.10 – 3.14 | – |
| License | MIT | MIT | Apache-2.0 | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.