A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
Dumping the object to JSON could be great. As far as i know namedtuples are not serializeable so i use jsno.dumps(ua.browser.__dict__). Plus, Exposing the ua_parser parsed dict as a property as well.
The true added value here is the is_mobile/pc/tablet/touch properties.
Dumping the object to JSON could be great. As far as i know namedtuples are not serializeable so i use
jsno.dumps(ua.browser.__dict__)
. Plus, Exposing theua_parser
parsed dict as a property as well.The true added value here is the
is_mobile
/pc
/tablet
/touch
properties.