Skip to main content

Takes a baseline delay value, a percentage to calculate the min/max for allowed jitter values, and a desired precision; returns a float.

Project description

jitt

simple jitter tool

Takes a baseline delay value, a percentage to calculate the min/max for allowed jitter values, and a desired precision; returns a float.

Installation

pip install jitt
python3 -m pip install jitt

Usage

from jitt import Jitt
j = Jitt(delay=10.5, percent=25, precision=3).jitter
print(j)

# misc results for above values (min: 7.875 / max: 13.125)
# 8.177
# 12.975
# 10.565
# 9.022
# 11.43 (trailing zero is truncated)

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

jitt-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

jitt-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file jitt-0.1.0.tar.gz.

File metadata

  • Download URL: jitt-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for jitt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc6c219643aab0eae1d158cd452fcd9adbe55de506f97519cfec9830374e9ea5
MD5 2f78ae4033f9b87c8e3e74fa725f0e86
BLAKE2b-256 3b2a8758c69489466e6401a11f4cee1241b40bbff6c589dd6fa9bf21d5375068

See more details on using hashes here.

File details

Details for the file jitt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jitt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for jitt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc75521de9f16c5ebe63338afebb20a7932a32009e64fbf13f527cecca6e0d5
MD5 018ce573a5d7f07442a334ae5c9258cd
BLAKE2b-256 00a5681ef7d3ec011020ca7bea6e6743a3b7c31a23f685410900006b9f893af6

See more details on using hashes here.

Supported by

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