2323from webdriver_manager .core .http import HttpClient
2424from webdriver_manager .core .os_manager import OperationSystemManager
2525
26- __version__ = "0.0.1 "
26+ __version__ = "0.0.2 "
2727
28- DEFAULT_CACHE_DIR = os .path .join (Path .home (), ".hpdf " , "chromedriver" )
28+ DEFAULT_CACHE_DIR = os .path .join (Path .home (), ".html2print " , "chromedriver" )
2929
3030# HTML2PDF.js prints unicode symbols to console. The following makes it work on
3131# Windows which otherwise complains:
3535sys .stdout = open (sys .stdout .fileno (), mode = "w" , encoding = "utf8" , closefd = False )
3636
3737
38- class HTML2PDF_HTTPClient (HttpClient ):
38+ class HTML2Print_HTTPClient (HttpClient ):
3939 def get (self , url , params = None , ** kwargs ) -> Response :
4040 last_error : Optional [Exception ] = None
4141 for attempt in range (1 , 3 ):
@@ -58,7 +58,7 @@ def get(self, url, params=None, **kwargs) -> Response:
5858 )
5959
6060
61- class HTML2PDF_CacheManager (DriverCacheManager ):
61+ class HTML2Print_CacheManager (DriverCacheManager ):
6262 def __init__ (self , file_manager : FileManager , path_to_cache_dir : str ):
6363 super ().__init__ (file_manager = file_manager )
6464 self .path_to_cache_dir : str = path_to_cache_dir
@@ -187,12 +187,12 @@ class Done(Exception):
187187
188188
189189def get_chrome_driver (path_to_cache_dir : str ) -> str :
190- cache_manager = HTML2PDF_CacheManager (
190+ cache_manager = HTML2Print_CacheManager (
191191 file_manager = FileManager (os_system_manager = OperationSystemManager ()),
192192 path_to_cache_dir = path_to_cache_dir ,
193193 )
194194
195- http_client = HTML2PDF_HTTPClient ()
195+ http_client = HTML2Print_HTTPClient ()
196196 download_manager = WDMDownloadManager (http_client )
197197 path_to_chrome = ChromeDriverManager (
198198 download_manager = download_manager , cache_manager = cache_manager
@@ -239,7 +239,7 @@ def main():
239239 # You can override this setting and save binaries to project.root/.wdm.
240240 os .environ ["WDM_LOCAL" ] = "1"
241241
242- parser = argparse .ArgumentParser (description = "HTML2PDF printer script." )
242+ parser = argparse .ArgumentParser (description = "HTML2Print printer script." )
243243
244244 parser .add_argument (
245245 "-v" , "--version" , action = "version" , version = __version__
0 commit comments