Web lists-archives.com

Bug#917077: ITP: python-user-agents -- Detect phone/tablet etc. from user agent string with Python




Package: wnpp
Severity: wishlist
Owner: Ruben Undheim <ruben.undheim@xxxxxxxxx>

* Package name    : python-user-agents
  Version         : 1.1.0
  Upstream Author : Selwin Ong
* URL             : https://pypi.org/project/user-agents/1.1.0/
* License         : Expat
  Programming Lang: Python
  Description     : Detect phone/tablet etc. from user agent string with Python


This is a Python library that provides an easy way to identify/detect
devices like mobile phones, tablets and their capabilities by parsing
(browser/HTTP) user agent strings. The goal is to reliably detect whether:

 - User agent is a mobile, tablet or PC based device
 - User agent has touch capabilities (has touch screen)

It relies on the excellent ua-parser to do the actual parsing of the raw user agent string.

I plan to maintain it in the Python modules team.