wx.tools.wxget¶
wxget.py – wx Version of wget utility for platform that don’t have it already.
- Usage:
wxget URL [DEST_DIR]
Where URL is a file URL and the optional DEST_DIR is a destination directory to download to, (default is to prompt the user). The –trusted option can be used to suppress certificate checks.
Functions Summary¶
Download and save a file specified by url to dest directory, with force will |
|
Try to download via pip. |
|
Try to download via urllib. |
|
Try to download via wget. |
|
Get the URL for the docs or demo. |
|
Get the file save location. |
|
Entry point for wxget. |
Functions¶
- download_file(url, dest=None, force=False, trusted=False)¶
Download and save a file specified by url to dest directory, with force will operate silently and overwrite any existing file.
- download_pip(url, filename, force=False, trusted=False)¶
Try to download via pip.
- download_urllib(url, filename)¶
Try to download via urllib.
- download_wget(url, filename, trusted=False)¶
Try to download via wget.
- get_docs_demo_url(demo=False)¶
Get the URL for the docs or demo.
- get_save_path(url, dest_dir, force=False)¶
Get the file save location.
- main(args=sys.argv)¶
Entry point for wxget.