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.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: obur-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for obur-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a0eb5610685356308e3863eb165c5c7e2441acb483616d2613358125ee9dc05a
MD5 757131ebba3c400b05a4a4f2dadd7b25
BLAKE2b-256 9e983bc8aa8ede55dc4c50a5dc62602d3b27be5e391ba205d30a883ea0997810

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