Skip to main content

Python package to perform fast.com speedtest

Project description

fastdotcom2

fastdotcom2 is a Python package that performs internet speed tests using fast.com. It measures download and upload speeds, and performs ping tests (both unloaded and loaded) to give you a comprehensive view of your internet performance.

Features

  • Download Speed Test: Measures the download speed in Mbps.
  • Upload Speed Test: Measures the upload speed in Mbps.
  • Ping Tests: Measures the average unloaded and loaded ping in milliseconds.

Installation

Install fastdotcom2 from PyPI using pip:

pip install fastdotcom2

Usage

Below is an example of how to use fastdotcom2 in your Python code:

import fastdotcom2

# Run the speed test with default parameters
result = fastdotcom2.fast_com2(verbose=False, maxtime=10)
print(result)

Example Output

When you run the example above, you might see output similar to:

Download Speed: 140.00 Mbps
Upload Speed: 22.00 Mbps
Unloaded Ping: 24 ms
Loaded Ping: 59 ms
  • Download Speed: Measured download speed in Mbps (displayed with two decimal places).
  • Upload Speed: Measured upload speed in Mbps (displayed with two decimal places).
  • Unloaded Ping: Average ping (latency) when the network is idle.
  • Loaded Ping: Average ping (latency) during a download test.

Requirements

  • Python 3.8 or newer
  • icmplib
  • requests

License

fastdotcom2 is released under the MIT License.

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastdotcom2-0.0.14.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastdotcom2-0.0.14-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file fastdotcom2-0.0.14.tar.gz.

File metadata

  • Download URL: fastdotcom2-0.0.14.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for fastdotcom2-0.0.14.tar.gz
Algorithm Hash digest
SHA256 8477df09d6b88efc7a96914d42b146662ed94ae7706d07120876bb0f36a0ad74
MD5 c0a387bfe693dbfe110a5931c7ae6466
BLAKE2b-256 c886f585c464a0509a9d5ac74dce71d187ad073aa2487ccd2211b4b4641624ac

See more details on using hashes here.

File details

Details for the file fastdotcom2-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: fastdotcom2-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for fastdotcom2-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 98d98135854d2c81e557d1ff922a78500a2216271711cbadc6e810f70f85ba41
MD5 c8cddd10e0b0ae4c101dfec29d02dce0
BLAKE2b-256 1a5066954ebee67a05bfd9c0998cc8cfe679c357da60ec91cec4009152932378

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page