File: wx.tools.wxget.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (91 lines) | stat: -rw-r--r-- 2,937 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. module:: wx.tools.wxget

.. currentmodule:: wx.tools.wxget

.. highlight:: python



.. _wx.tools.wxget:

==========================================================================================================================================
|phoenix_title|  **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 surpress certificate checks.


|function_summary| Functions Summary
====================================

================================================================================ ================================================================================
:func:`~wx.tools.wxget.download_file`                                            Download and save a file specified by url to dest directory, with force will
:func:`~wx.tools.wxget.download_pip`                                             Try to donwload via pip.
:func:`~wx.tools.wxget.download_urllib`                                          Try to donwload via urllib.
:func:`~wx.tools.wxget.download_wget`                                            Try to donwload via wget.
:func:`~wx.tools.wxget.get_docs_demo_url`                                        Get the URL for the docs or demo.
:func:`~wx.tools.wxget.get_save_path`                                            Get the file save location.
:func:`~wx.tools.wxget.main`                                                     Entry point for wxget.
================================================================================ ================================================================================


|



Functions
------------

.. function:: 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.


.. function:: download_pip(url, filename, force=False, trusted=False)

   Try to donwload via pip.


.. function:: download_urllib(url, filename)

   Try to donwload via urllib.


.. function:: download_wget(url, filename, trusted=False)

   Try to donwload via wget.


.. function:: get_docs_demo_url(demo=False)

   Get the URL for the docs or demo.


.. function:: get_save_path(url, dest_dir, force=False)

   Get the file save location.


.. function:: main(args=sys.argv)

   Entry point for wxget.