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.

  • d (dict) – Dictionary to operate on
  • name (str) – Fallback name, if dict has no type key

Parse API v2 style timestamps.

Parameters:s (str) – Timestamp to parse

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.

Return type:Issue
Returns:API v2 issue mangled to look like a API v3 result