madrona :: common :: uaparser :: parser :: UserAgent :: Class UserAgent
[hide private]

Class UserAgent

source code

object --+
         |
        UserAgent

Instance Methods [hide private]
 
__init__(self, user_agent_string, js_user_agent_string=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
pretty(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
parse_pretty(pretty_string)
Parse a user agent pretty (e.g.
source code
 
pretty_print(family, v1=None, v2=None, v3=None)
Pretty browser string.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, user_agent_string, js_user_agent_string=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parse_pretty(pretty_string)
Static Method

source code 
Parse a user agent pretty (e.g. 'Chrome 4.0.203') to parts.

Args:
    pretty_string: a user agent pretty string (e.g. 'Chrome 4.0.203')
Returns:
    [family, v1, v2, v3] e.g. ['Chrome', '4', '0', '203']