Overwatch Abstract Models¶
Class Reference¶
-
class
Overwatch.
OWPatch
(**kwargs)¶ Helper class to generate an object from Blizzard’s Patch Notes
-
patchref
(str)¶ Patch reference ID
e.g.
'patch-50148'
-
ver
(str)¶ Patch version number
e.g.
'1.28.0.1'
-
verpatch
(str)¶ Combined version & patch number
e.g.
'1.28.0.1.50148'
-
patchdate
(datetime)¶ Patch date (UTC)
e.g.
dt.strptime('09/11/2018', '%m/%d/%Y')
-
patchURL
(yarl.URL)¶ Patch notes permalink
Patch note permalink is provided by BlizzTrack
Blizzard patch banner URL permalink
-
staticmethod coroutine
asyncfromURL
(inURL: typing.Union[str, URL]) → typing.List¶ Return a list of Overwatch.OWPatch objects parsed from inURL.
Default URL is Blizzard’s Overwatch PC patch notes. Other URLs are not explicitly supported
-
static
fromURL
(inURL: typing.Union[str, URL]) → typing.List¶ This function is blocking
Return a list of Overwatch.OWPatch objects parsed from inURL.
Default URL is Blizzard’s Overwatch PC patch notes. Other URLs are not explicitly supported
-
static
getblizztrack
(patchref:str) → yarl.URL¶ Build a
yarl.URL
object from a patch reference ID>>> from cogs import overwatch >>> patchURL = overwatch.PatchNotesParser.getblizztrack('50148') >>> print(patchURL) https://blizztrack.com/patch_notes/overwatch/50148
-