View on GitHub

testspeednet

Tool for testing internet download/upload

Test speed net (download/upload)

testspeednet is tool for test speed net (download/upload).

Developed in python code.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

testspeednet python checker testspeednet package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

debian linux os

testspeednet python3 build

Currently there are three ways to install package

Install using pip

testspeednet is located at pypi.org.

You can install by using pip

# python3
pip3 install testspeednet
Install using build

Navigate to release page download and extract release archive.

To install testspeednet type the following

tar xvzf testspeednet-x.y.z.tar.gz
cd testspeednet-x.y.z/
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/testspeednet-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.10/dist-packages/usr/local/bin/testspeednet_run.py
ln -s /usr/local/lib/python3.10/dist-packages/usr/local/bin/testspeednet_run.py /usr/local/bin/testspeednet_run.py
Install using py setup

Navigate to release page download and extract release archive.

To install testspeednet locate and run setup.py with arguments

tar xvzf testspeednet-x.y.z.tar.gz
cd testspeednet-x.y.z
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
Install using docker

You can use Dockerfile to create image/container.

Dependencies

testspeednet requires next modules and libraries

Tool structure

testspeednet is based on OOP

Tool structure

    testspeednet/
          ├── conf/
          │   ├── apis.yaml
          │   ├── testspeednet.cfg
          │   ├── testspeednet.logo
          │   └── testspeednet_util.cfg
          ├── __init__.py
          ├── log/
          │   └── testspeednet.log
          ├── net/
          │   ├── config.py
          │   ├── download.py
          │   ├── __init__.py
          │   ├── model.py
          │   ├── speed.py
          │   ├── test.py
          │   ├── upload.py
          │   └── utils/
          │       ├── catch_request.py
          │       ├── checking_servers.py
          │       ├── connector.py
          │       ├── distance.py
          │       ├── do_nothing_factory.py
          │       ├── fake_shutdown_event.py
          │       ├── get_exception_factory.py
          │       ├── get_response_stream_factory.py
          │       ├── gzip_decoded_response.py
          │       ├── http_downloader.py
          │       ├── http_uploader_data.py
          │       ├── http_uploader.py
          │       ├── __init__.py
          │       ├── net_exceptions.py
          │       ├── opener.py
          │       ├── printer_factory.py
          │       ├── requester.py
          │       ├── test_http_connection.py
          │       ├── test_http_handler.py
          │       ├── test_https_connection.py
          │       ├── test_https_handler.py
          │       ├── test_net_config.py
          │       ├── test_results.py
          │       └── user_agent.py
          ├── py.typed
          └── run/
              └── testspeednet_run.py
    
    6 directories, 39 files

Code coverage

Name Stmts Miss Cover
testspeednet/__init__.py 76 11 86%
testspeednet/net/__init__.py 74 6 92%
testspeednet/net/config.py 56 2 96%
testspeednet/net/download.py 30 2 93%
testspeednet/net/model.py 30 2 93%
testspeednet/net/speed.py 32 2 94%
testspeednet/net/test.py 155 6 96%
testspeednet/net/upload.py 30 2 93%
testspeednet/net/utils/__init__.py 0 0 100%
testspeednet/net/utils/catch_request.py 36 7 81%
testspeednet/net/utils/checking_servers.py 151 27 82%
testspeednet/net/utils/connector.py 22 1 95%
testspeednet/net/utils/distance.py 24 0 100%
testspeednet/net/utils/do_nothing.py 12 0 100%
testspeednet/net/utils/fake_shutdown_event.py 14 0 100%
testspeednet/net/utils/get_exception.py 12 1 92%
testspeednet/net/utils/get_response_stream.py 21 3 86%
testspeednet/net/utils/gzip_decoded_response.py 27 0 100%
testspeednet/net/utils/http_downloader.py 46 6 87%
testspeednet/net/utils/http_uploader.py 56 8 86%
testspeednet/net/utils/http_uploader_data.py 51 7 86%
testspeednet/net/utils/net_exceptions.py 16 0 100%
testspeednet/net/utils/opener.py 27 2 93%
testspeednet/net/utils/printer.py 28 9 68%
testspeednet/net/utils/requester.py 29 0 100%
testspeednet/net/utils/test_http_connection.py 18 0 100%
testspeednet/net/utils/test_http_handler.py 24 2 92%
testspeednet/net/utils/test_https_connection.py 27 1 96%
testspeednet/net/utils/test_https_handler.py 27 2 93%
testspeednet/net/utils/test_net_config.py 85 15 82%
testspeednet/net/utils/test_results.py 75 33 56%
testspeednet/net/utils/user_agent.py 17 0 100%
Total 1328 157 88%

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to testspeednet

License: GPL v3 License

Copyright (C) 2016 - 2024 by vroncevic.github.io/testspeednet

testspeednet is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate