hudman 9.0.0
Local HUD mirror manager
hudman.hud.github.HUDGitHub Class Reference
Inheritance diagram for hudman.hud.github.HUDGitHub:
hudman.hud.HUDCommon

Public Member Functions

 __init__ (self, hud)
 

Protected Member Functions

int _updatecheck (self)
 

Protected Attributes

str _apiurl
 
 _ghtoken
 
 _ghuser = Settings.github_user
 

Detailed Description

Class for working with HUDs hosted on GitHub.

Constructor & Destructor Documentation

◆ __init__()

hudman.hud.github.HUDGitHub.__init__ ( self,
hud )
Main constructor of the HUDGitHub class.
:param hud: A single entry from the HUD database.

Reimplemented from hudman.hud.HUDCommon.

Member Function Documentation

◆ _updatecheck()

int hudman.hud.github.HUDGitHub._updatecheck ( self)
protected
Call GitHub API and fetch last modification time of the
specified HUD.
:return: Last modification time in the unixtime format.
:rtype: int

Reimplemented from hudman.hud.HUDCommon.

Member Data Documentation

◆ _apiurl

str hudman.hud.github.HUDGitHub._apiurl
protected
Initial value:
= self.repopath.replace('https://github.com/',
'https://api.github.com/repos/') + '/commits?per_page=1'