vsi.tools.network package

Submodules

vsi.tools.network.localdatatest module

class vsi.tools.network.localdatatest.Average(bufferSize=100)[source]

Bases: object

add_full(value, t=1733865733.6809213)[source]
add_partial(value, t=1733865733.680921)[source]
average_full()[source]
average_partial()[source]
clear()[source]
set_full()[source]
set_partial()[source]
vsi.tools.network.localdatatest.connectDataTest(ip, port, desired, timeout=1)[source]
vsi.tools.network.localdatatest.scanSubnet(ip, port)[source]
vsi.tools.network.localdatatest.serveDataTest(port, desired)[source]
vsi.tools.network.localdatatest.streamData(sock, desired)[source]
vsi.tools.network.localdatatest.testConnect(host, port, timeout=0.1)[source]
vsi.tools.network.localdatatest.testIp(host)[source]

vsi.tools.network.speedtest module

class vsi.tools.network.speedtest.FileGetter(url, start)[source]

Bases: Thread

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

class vsi.tools.network.speedtest.FilePutter(url, start, size)[source]

Bases: Thread

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

exception vsi.tools.network.speedtest.SpeedtestCliServerListError[source]

Bases: Exception

Internal Exception class used to indicate to move on to the next URL for retrieving speedtest.net server details

vsi.tools.network.speedtest.bound_socket(*args, **kwargs)[source]
vsi.tools.network.speedtest.build_request(url, data=None, headers={})[source]
vsi.tools.network.speedtest.catch_request(request)[source]
vsi.tools.network.speedtest.closestServers(client, all=False)[source]
vsi.tools.network.speedtest.ctrl_c(signum, frame)[source]
vsi.tools.network.speedtest.distance(origin, destination)[source]
vsi.tools.network.speedtest.downloadSpeed(files, quiet=False)[source]
vsi.tools.network.speedtest.getAttributesByTagName(dom, tagName)[source]
vsi.tools.network.speedtest.getBestServer(servers)[source]
vsi.tools.network.speedtest.getConfig()[source]
vsi.tools.network.speedtest.main()[source]
vsi.tools.network.speedtest.speedtest()[source]
vsi.tools.network.speedtest.uploadSpeed(url, sizes, quiet=False)[source]
vsi.tools.network.speedtest.version()[source]

vsi.tools.network.wget module

vsi.tools.network.wget.authorize_basic(user=None, password=None, realm=None, uri=None)[source]

Call before calling download

Parameters:
  • user (str) – The User

  • password (str) – The Password

  • realm (str) – The Realm

  • uri (str) – The Uri

Returns:

The filename

Return type:

str

vsi.tools.network.wget.download(url, filename=None, chunk_size=1048576, cookie={}, disable_ssl_verify=False)[source]

Module contents