Built withΒΆ
- __future__ Ensures backwards compatibility
os
Portable way of using operating system dependent functionalitiesos.path
Makes 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.ArgumentParser
Enables the use of arguments. Try$ dotapatch -h
collections.defaultdict
defaultdict(list)
stores each line of the changelog inside a list (inside a dictionary)- Each
dictionary.keys()
(hero/item) storesdictionary.values()
(hero/item changes)
urllib.urlopen
Fetches HeropediaData files- urllib2.urlopen for Python 2
urllib.request.urlopen()
for Python 3
logging
Manages dotapatch logs- DEBUG The numeric value of logging level for debugging
logging.StreamHandler
Manages the logging outputlogging.Formatter
Formats the logging outputlogging.FileHandler
Saves 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