models
¶
Note
The documentation in this section is aimed at people wishing to contribute
to hubugs
, and can be skipped if you are simply using the tool from
the command line.
-
hubugs.models.
object_hook
(__d, __name='unknown')¶ JSON object hook to create dot-accessible objects.
-
hubugs.models.
_v2_conv_timestamp
(__s)¶ Parse API v2 style timestamps.
- Parameters
__s (
str
) – Timestamp to parse
-
hubugs.models.
from_search
(__obj)¶ Support legacy API search results as API v3 issues(-ish).
This is an awful hack to workaround the lack of search support in API v3. It needs to be removed at the first possible opportunity.
- Returns
API v2 issue mangled to look like a API v3 result
- Return type
Issue