Skip to main content

obur

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.

Metadata

Release files for obur 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obur 1.0.1
File Size Uploaded Provenance
obur-1.0.1.tar.gz 3.9 kB Without provenance Details

Release files / obur-1.0.1.tar.gz

Download URL obur-1.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6517499b3d8ec52935254e3650fee6683a4a9d880b1f4d7e206691db2a85d010
BLAKE2b-256 checksum
How to use checksums
3189b7c75253c678f9781f65619a7e6f17a7c36dbf01fe8783ad3b43e6ac8ec0
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for obur 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page