Skip to main content

A minimalistic speed test library.

Project description

obur is a minimalistic http speedtest library. It can test download speed between client and server. You can use it via command line or inside your python program.

Installation

pip install obur

Usage

Command Line

obur <target_url>

You can give some optional parameters via command line interface:

usage: obur [-h] [--duration DURATION] [--chunk-size CHUNK_SIZE]
          [--threshold THRESHOLD]
          [--standard-deviation-count STANDARD_DEVIATION_COUNT]
          [--speed-window-size SPEED_WINDOW_SIZE]
          [--time-interval TIME_INTERVAL]
          url

Calculate speed test between client an server.

positional arguments:
  url                   Destination address

optional arguments:
  -h, --help            show this help message and exit
  --duration DURATION   Max speed test duration.
  --chunk-size CHUNK_SIZE
                      Chunk Size
  --threshold THRESHOLD
                      Speed threshold in percentage for determining
                      stabilitiy.
  --standard-deviation-count STANDARD_DEVIATION_COUNT
                      Standard deviation count
  --speed-window-size SPEED_WINDOW_SIZE
                      Speed window size in seconds.
  --time-interval TIME_INTERVAL
                      Time interval in seconds. Get data points in every
                      this interval.

Python Program

from obur import measure

measure(url, duration=60, chunk_size=1024)

Important Note

For a healthy and accurate speed test result, the target url should be a stream url. You can use puke on the server side for providing a dummy stream url.

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

obur-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file obur-1.0.1.tar.gz.

File metadata

  • Download URL: obur-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for obur-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6517499b3d8ec52935254e3650fee6683a4a9d880b1f4d7e206691db2a85d010
MD5 af7ec6ce764e613a78e9283bcbe0d375
BLAKE2b-256 3189b7c75253c678f9781f65619a7e6f17a7c36dbf01fe8783ad3b43e6ac8ec0

See more details on using hashes here.

Supported by

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