Built withΒΆ
- __future__ Ensures backwards compatibility
osPortable way of using operating system dependent functionalitiesos.pathMakes sure all directories are created and all data are downloadedos.makedirs()Creates HeropediaData directoryos.remove()Clean data generated during the testsos.rename()Persists original data after testing
json.loads()Parses json from HeropediaData to a Python dictionaryast.literal_eval()Parses data from file to a Python dictionaryargparse.ArgumentParserEnables the use of arguments. Try$ dotapatch -hcollections.defaultdictdefaultdict(list)stores each line of the changelog inside a list (inside a dictionary)- Each
dictionary.keys()(hero/item) storesdictionary.values()(hero/item changes)
urllib.urlopenFetches HeropediaData files- urllib2.urlopen for Python 2
urllib.request.urlopen()for Python 3
loggingManages dotapatch logs- DEBUG The numeric value of logging level for debugging
logging.StreamHandlerManages the logging outputlogging.FormatterFormats the logging outputlogging.FileHandlerSaves the logging output into a filelogging.getLogger()Keeps logger consistent between classeslogging.getLevelName()Returns the numeric value of a string logging level
- pip Installation manager
- setuptools Setup manager