| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
post_walk_rules.PostWalkRules --+
|
UaProps
This class is used by the main API class and should not be used directly. This class tries to extract properties from the User-Agent string itself. This is a completely separate step to the main JSON tree walk but uses the results of the tree walk to optimise the property extraction.
The property extraction is done in two steps:
1. Try and identify the type of User-Agent and thus the set of
property extraction rules to run. This is optimised by the
properties from the tree walk.
2. Run the rules found in step 1 to try and extract the properties.
Copyright: Copyright (c) DeviceAtlas Limited 2021. All Rights Reserved.
Author: DeviceAtlas Limited
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
API_ID = 5
|
|
KEY_UA_RULES =
|
|
KEY_SKIP_IDS =
|
|
KEY_DEFAULT_REGEX_SET =
|
|
KEY_RULE_GROUPS = 'rg'
|
|
KEY_RULE_REGEX_ID =
|
|
KEY_REGEXES =
|
|
KEY_REGEX_MATCH_POS =
|
|
KEY_REFINE_REGEX_ID =
|
|
KEY_SEARCH_REGEX_ID =
|
|
|
Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Merge the tree walk properties with the User-Agent string properties using the User-Agent rules.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Dec 4 11:30:34 2019 | http://epydoc.sourceforge.net |