Comparison
device-detector vs pymobiledetect vs ua-parser vs user-agents
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python3 port of matomo's Device Detector
Maintained. Last release 8 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install device-detectorDetect mobile and tablet browsers
Likely abandoned. No release or commit for years (last release over 8 years ago).
pip install pymobiledetectPython port of Browserscope's user agent parser
Maintained. Last release 8 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install ua-parserA library to identify devices (phones, tablets) and their capabilities by parsing browser user agent strings.
Likely abandoned. No release or commit for years (last release over 6 years ago).
pip install user-agentsIn short
- pymobiledetect looks abandoned: avoid it for new projects.
- user-agents looks abandoned: avoid it for new projects.
- ua-parser is the most used: 21.8M downloads a month, 2.1× more than user-agents.
- device-detector is better maintained: Pythie’s Index 66 against 45.
Side by side
| Metric | device-detector | pymobiledetect | ua-parser | user-agents |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 66 | 19 |