# `pace-calc` Калькулятор темпа бега
[![GitHub release](https://img.shields.io/github/release/ntymko/pace_calc.svg?style=flat-square)](https://github.com/ntymko/pace_calc/releases)
[![GitHub license](https://img.shields.io/github/license/ntymko/pace_calc.svg?style=flat-square)](https://github.com/ntymko/pace_calc/blob/main/LICENSE)
Рассчитывает по имеющимся данным темп бега, скорость или итоговое время, необходимое для преодоления определенной дистанции.
## Использование
Главный входной параметр - `distance` (пройденное расстояние, указанное в метрах) Указывается при создании объектов класса `PaceCalculator`. Используется в функциях расчета темпа, времени, скорости.
### Пример
Необходимо рассчитать темп по имеющимся расстоянию и времени
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ntymko/pace_calc",
"name": "pace-calc",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "pace calc",
"author": "ntymko",
"author_email": "ndilkova28@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8a/88/be25686acf013223284ed5f955aa52dbe3040b3d704358da8732d818394f/pace_calc-1.0.1.tar.gz",
"platform": null,
"description": "# `pace-calc` \u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0442\u0435\u043c\u043f\u0430 \u0431\u0435\u0433\u0430\r\n\r\n[![GitHub release](https://img.shields.io/github/release/ntymko/pace_calc.svg?style=flat-square)](https://github.com/ntymko/pace_calc/releases)\r\n[![GitHub license](https://img.shields.io/github/license/ntymko/pace_calc.svg?style=flat-square)](https://github.com/ntymko/pace_calc/blob/main/LICENSE)\r\n\r\n\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u043c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0442\u0435\u043c\u043f \u0431\u0435\u0433\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u0438.\r\n\r\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\r\n\r\n\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 - `distance` (\u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043c\u0435\u0442\u0440\u0430\u0445) \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 `PaceCalculator`. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0442\u0435\u043c\u043f\u0430, \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438.\r\n\r\n### \u041f\u0440\u0438\u043c\u0435\u0440\r\n\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0435\u043c\u043f \u043f\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u043c\u0441\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438\r\n\r\n```python\r\nfrom pace_calc import PaceCalculator, get_formating_time_by_seconds\r\n\r\ndistance = 5000 # \u0432 \u043c\u0435\u0442\u0440\u0430\u0445\r\ntime_sec = 1500 # 25 \u043c\u0438\u043d.\r\ncalc = PaceCalculator(distance)\r\ntemp_sec = calc.calc_temp(time_sec) # 300 \u0441\u0435\u043a.\r\ntemp = get_formating_time_by_seconds(temp_sec) # 5:00\r\n```\r\n\r\n\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0442\u0435\u043c\u043f\u0430 \u0431\u0435\u0433\u0430, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
"version": "1.0.1",
"project_urls": {
"GitHub": "https://github.com/ntymko/pace_calc",
"Homepage": "https://github.com/ntymko/pace_calc"
},
"split_keywords": [
"pace",
"calc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1d6be43c554b9888035db2d568b3f3ff95b2b9fd05d7c32905229d674ccf1ac6",
"md5": "c3a32cb24c72dddca06216a82e62ae8a",
"sha256": "3be1c5dedc65f8a3a20859913cfc01cd1c51225ea0168559fac58869e9d2b79e"
},
"downloads": -1,
"filename": "pace_calc-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c3a32cb24c72dddca06216a82e62ae8a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4645,
"upload_time": "2024-02-06T05:44:18",
"upload_time_iso_8601": "2024-02-06T05:44:18.788894Z",
"url": "https://files.pythonhosted.org/packages/1d/6b/e43c554b9888035db2d568b3f3ff95b2b9fd05d7c32905229d674ccf1ac6/pace_calc-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a88be25686acf013223284ed5f955aa52dbe3040b3d704358da8732d818394f",
"md5": "c3c7fc068435cbc2ed3756421d86bbc7",
"sha256": "3c10e907bc0c6aa72fe3685acfd647c6edb1570f17e30d4c91cc8aefdc818b83"
},
"downloads": -1,
"filename": "pace_calc-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c3c7fc068435cbc2ed3756421d86bbc7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3778,
"upload_time": "2024-02-06T05:44:20",
"upload_time_iso_8601": "2024-02-06T05:44:20.444757Z",
"url": "https://files.pythonhosted.org/packages/8a/88/be25686acf013223284ed5f955aa52dbe3040b3d704358da8732d818394f/pace_calc-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-06 05:44:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ntymko",
"github_project": "pace_calc",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pace-calc"
}