selwin/python-user-agents
A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4989
- days_rel: n/a
- days_push: 1295
- n_releases_24m: 0
Adoption not part of the score
1513 stars · 196 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library that parses browser user agent strings to identify devices (mobile, tablet, PC), browsers, operating systems, and capabilities like touch support. It builds on top of ua-parser for the raw parsing.
Use cases
- detect mobile devices from user agent strings in python
- check if a request comes from a tablet or phone
- parse browser and os info from http user agent headers
- identify bots from user agent strings
- detect touch capability of visitors
- classify web traffic by device type
When to choose
- you need simple device/browser/OS classification from user agent strings in Python
- you want convenient boolean flags like is_mobile, is_tablet, is_bot on top of ua-parser
When to avoid
- you need highly accurate, frequently updated device detection for the latest devices
- you need client-side (JavaScript) detection
- you need detailed device hardware capabilities beyond basic family/brand/model
Facets
library · maturity maintenance
parser http-client web-development analytics developer-tools python user-agent-parsing device-detection browser-detection mobile-detection
1 source
- readme: https://github.com/selwin/python-user-agents · fetched 2026-08-28 · 738aa6ef7a6b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| selwin/python-user-agents | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="selwin/python-user-agents")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem