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.

The measured values come rather close to the measurements taken on the website. If anyone has an idea of tweaking it even moren, feel free to get in contact.

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, max_time=10)
print(result)

Example Output

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

{'download_speed': 120.68, 'upload_speed': 25.93, 'ping_unloaded': 19.35, 'ping_loaded': 48.64}
  • 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.18.tar.gz (8.9 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.18-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastdotcom2-0.0.18.tar.gz
  • Upload date:
  • Size: 8.9 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.18.tar.gz
Algorithm Hash digest
SHA256 f951e1447f65a8875eab1b129c29a83775befc5b614c8cc287e7d1bab777cd23
MD5 d9d41087066215773206dfed04d04fff
BLAKE2b-256 58517389433d8060d2f04e3fc7de1c0801775180ab1acbc320149ac745c631f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastdotcom2-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 01fab16555ed4601c62b3c1788932a062fb32806f5e05c1971c3d80614e1fe42
MD5 16d62745e4b1cccc891bee6345eaaf20
BLAKE2b-256 4c1a1837a6b285a55592cf1982d83c6c0c3098d6df92d4bc47d7a548fa1496e7

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