Skip to main content

Библиотека для расчета темпа бега, скорости и времени

Project description

pace-calc Калькулятор темпа бега

GitHub release GitHub license

Рассчитывает по имеющимся данным темп бега, скорость или итоговое время, необходимое для преодоления определенной дистанции.

Использование

Главный входной параметр - distance (пройденное расстояние, указанное в метрах) Указывается при создании объектов класса PaceCalculator. Используется в функциях расчета темпа, времени, скорости.

Пример

Необходимо рассчитать темп по имеющимся расстоянию и времени

from pace_calc import PaceCalculator, get_formating_time_by_seconds

distance = 5000 # в метрах
time_sec = 1500 # 25 мин.
calc = PaceCalculator(distance)
temp_sec = calc.calc_temp(time_sec) # 300 сек.
temp = get_formating_time_by_seconds(temp_sec) # 5:00

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

pace_calc-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pace_calc-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pace_calc-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for pace_calc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3c10e907bc0c6aa72fe3685acfd647c6edb1570f17e30d4c91cc8aefdc818b83
MD5 c3c7fc068435cbc2ed3756421d86bbc7
BLAKE2b-256 8a88be25686acf013223284ed5f955aa52dbe3040b3d704358da8732d818394f

See more details on using hashes here.

File details

Details for the file pace_calc-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pace_calc-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for pace_calc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be1c5dedc65f8a3a20859913cfc01cd1c51225ea0168559fac58869e9d2b79e
MD5 c3a32cb24c72dddca06216a82e62ae8a
BLAKE2b-256 1d6be43c554b9888035db2d568b3f3ff95b2b9fd05d7c32905229d674ccf1ac6

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