User-friendly running pace calculator
Project description
🏃♀️ running 🏃
A flexible but user-friendly running pace calculator as a command line tool.
Installation
$ pip install running
Usage
Call running with two of the three arguments pace, distance or time, and it will calculate the missing one for you.
$ running --pace 4:30/km --distance marathon
Elapsed time: 3:09:53 [H:]MM:SS
You can also just use the first letter of the argument names:
$ running -p 4:30 -d marathon
Note that distance unit for the pace was omitted, defaulting to kilometer. This can be changed with the unit (-u) parameter as follows:
$ running -p 8:00 -d 10km -u miles
Elapsed time: 49:43 [H:]MM:SS
You can also directly specify the units for the pace:
$ running -p 6min/mile -t 1hour
Travelled distance: 16.09 km
$ running -d half-marathon -t 1:45:00
Required pace: 04:59 /km
You can also view split times with --splits (-s):
$ running -p 4:30 -d marathon --splits
Elapsed time: 3:09:53 [H:]MM:SS
1 km 04:30
2 km 09:00
3 km 13:30
...
42 km 3:09:00
42.195 km 3:09:53
Predict race times for other distances with --predict (-r), using the Riegel formula:
$ running -d 10km -t 45:00 --predict
Required pace: 04:30 /km
Race predictions:
1500m 06:01 (04:01 /km)
1 mile 06:29 (04:02 /km)
5K 21:35 (04:19 /km)
10K 45:00 (04:30 /km)
Half-marathon 1:39:17 (04:42 /km)
Marathon 3:27:01 (04:54 /km)
The tool is quite flexible in terms of the valid expressions for the arguments, see running --help for more examples.
Ever wondered how fast Usain Bolt would run a marathon?
$ running -p bolt -d marathon
Elapsed time: 1:07:22 [H:]MM:SS
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file running-0.4.0.tar.gz.
File metadata
- Download URL: running-0.4.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15844bd25f47e2107719ef778512b64ebea7af696dff3e966f3f8595a1fa714c
|
|
| MD5 |
b8bda7a2f1ecd90ddba12d730a4adb0a
|
|
| BLAKE2b-256 |
46366bdf2ad31f6d9f310bde14ed0add1950c4c8e7c716192d568eadada9ca08
|
Provenance
The following attestation bundles were made for running-0.4.0.tar.gz:
Publisher:
ci.yml on jonathanlofgren/running
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
running-0.4.0.tar.gz -
Subject digest:
15844bd25f47e2107719ef778512b64ebea7af696dff3e966f3f8595a1fa714c - Sigstore transparency entry: 943156013
- Sigstore integration time:
-
Permalink:
jonathanlofgren/running@2457f7ae731fa6b74edb45012786dea9eb218ccf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jonathanlofgren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2457f7ae731fa6b74edb45012786dea9eb218ccf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file running-0.4.0-py3-none-any.whl.
File metadata
- Download URL: running-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5210ad82791c84d475ffa37fa0716ecb55e1cb114098edcb363372372b743afc
|
|
| MD5 |
8ed1155543696ec586870d50850d680d
|
|
| BLAKE2b-256 |
fa1cb1871ede11c476ab6c5e134d23ef5e5a4264e6b389a97a5b82e8d0058e32
|
Provenance
The following attestation bundles were made for running-0.4.0-py3-none-any.whl:
Publisher:
ci.yml on jonathanlofgren/running
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
running-0.4.0-py3-none-any.whl -
Subject digest:
5210ad82791c84d475ffa37fa0716ecb55e1cb114098edcb363372372b743afc - Sigstore transparency entry: 943156031
- Sigstore integration time:
-
Permalink:
jonathanlofgren/running@2457f7ae731fa6b74edb45012786dea9eb218ccf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jonathanlofgren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2457f7ae731fa6b74edb45012786dea9eb218ccf -
Trigger Event:
workflow_dispatch
-
Statement type: