Comparison
jsonformatter vs logfmter vs mo-logs vs structlog
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python log in json format.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install jsonformatterA Python package which supports global logfmt formatted logging.
Low maintenance activity. Last release 9 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install logfmterMore Logs! Structured Logging and Exception Handling
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install mo-logsStructured Logging for Python
Maintained. Last release 6 months ago, commits in 14 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install structlogIn short
- jsonformatter is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- structlog is the most used: 129.5M downloads a month, 300× more than jsonformatter.
- structlog also has the best Pythie’s Index (67).
- structlog is growing fastest: downloads +18% over the last month.
- Safe default for a new project: structlog.
Side by side
| Metric | jsonformatter | logfmter | mo-logs | structlog |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | 38 |