JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
download_data.Downloader Class Reference

Public Member Functions

 __init__ (self, **kwargs)
 
 __str__ (self)
 
 printRequest (self, r)
 
 verifyHash (self)
 
 get (self)
 
 download (self)
 
 extract (self)
 
 save (self, r)
 

Static Public Attributes

int MB = 1024*1024
 
int BUFSIZE = 10*MB
 

Protected Attributes

 _name
 
 _url
 
 _filename
 
 _sha
 
 _saveTo
 
 _extractTo
 

Detailed Description

Definition at line 13 of file download_data.py.

Constructor & Destructor Documentation

◆ __init__()

download_data.Downloader.__init__ (   self,
**  kwargs 
)

Definition at line 17 of file download_data.py.

Member Function Documentation

◆ __str__()

download_data.Downloader.__str__ (   self)

◆ download()

◆ extract()

download_data.Downloader.extract (   self)

◆ get()

◆ printRequest()

download_data.Downloader.printRequest (   self,
  r 
)

Definition at line 28 of file download_data.py.

References download_data.Downloader.MB.

Referenced by download_data.Downloader.download().

◆ save()

download_data.Downloader.save (   self,
  r 
)

◆ verifyHash()

download_data.Downloader.verifyHash (   self)

Member Data Documentation

◆ _extractTo

download_data.Downloader._extractTo
protected

Definition at line 23 of file download_data.py.

Referenced by download_data.Downloader.extract().

◆ _filename

download_data.Downloader._filename
protected

◆ _name

download_data.Downloader._name
protected

◆ _saveTo

download_data.Downloader._saveTo
protected

◆ _sha

download_data.Downloader._sha
protected

Definition at line 21 of file download_data.py.

Referenced by download_data.Downloader.verifyHash().

◆ _url

download_data.Downloader._url
protected

◆ BUFSIZE

int download_data.Downloader.BUFSIZE = 10*MB
static

◆ MB

int download_data.Downloader.MB = 1024*1024
static

Definition at line 14 of file download_data.py.

Referenced by download_data.Downloader.printRequest().


The documentation for this class was generated from the following file: