runneroutpost-tools
Small tools for running groups, in Python. The same functions as the
runneroutpost-tools npm package, and the same results as the
free tools on the RunnerOutpost blog. Nothing is sent anywhere and nothing
is stored.
- Typed, Python 3.9 or newer, no dependencies (Windows installs
tzdatafor time zones). - Pure functions on text and numbers: you hand in a schedule or a GPX file and get the result back.
pip install runneroutpost-tools
Examples
from runneroutpost_tools import (
parse_schedule, schedule_to_ics, trim_gpx, meeting_times, pace_window, route_stats, daylight,
)
# A pasted weekly schedule to a calendar file.
runs, problems = parse_schedule("Tuesday 18:30 Track @ Stade Pierre 8 km", "Europe/Zurich")
ics = schedule_to_ics(runs, name="Club runs", weeks=26)
# Hide the first and last 200 m of a route; time, elevation and waypoints are dropped.
result = trim_gpx(gpx_text, meters=200)
if result.ok:
save(result.gpx)
# One meeting time in other time zones, and a message for the chat.
m = meeting_times("2026-12-05", "08:00", "Europe/Zurich", ["America/New_York"])
print(m.message("the lake pier"))
# Run at the lake pier:
# Europe/Zurich: Sat, 5 Dec 2026, 08:00
# America/New York: Sat, 5 Dec 2026, 02:00
# A pace range (seconds per km) over 10 km: the finish-time window and the splits.
w = pace_window(10, 300, 360) # fast_seconds=3000, slow_seconds=3600, gap_seconds=600, ...
# Distance, climb, descent, high and low point, and loop or not, from a GPX file.
stats = route_stats(gpx_text)
# Sunrise, sunset and twilight, and the minutes of a run that fall in the dark.
light = daylight(lat=47.37, lon=8.54, date="2026-11-17", time="17:00", time_zone="Europe/Zurich", run_minutes=90)
light.minutes # DaylightMinutes(total=90, daylight=0, twilight=23, dark=67)
What is in it
| Function | What it does |
|---|---|
parse_schedule |
Reads one weekly run per line (weekday, time, title, @ place, effort word, pace range /km, 8 km, until YYYY-MM-DD). Lines it cannot read come back as problems with a reason. |
schedule_to_ics |
Writes the runs as an iCalendar file, repeating weekly, each date in UTC so a run keeps its local time across clock changes. |
trim_gpx |
Hides the first and last metres of a route (200 m by default). The result has latitude and longitude only. |
meeting_times |
One meeting time in several time zones, with the day shift and a chat message (times are written in English). |
pace_window |
Finish-time window and splits for a distance and a pace range. Helpers: parse_pace, format_duration. |
route_stats |
Distance, climb, descent, highest and lowest point, and whether the route is a loop. |
daylight |
Sunrise, sunset, civil twilight, and the minutes of a run in daylight, twilight and the dark (to within a couple of minutes, away from the poles). |
A GPX file with a document type declaration is refused, which rules out entity-expansion tricks.
Links
- Free tools in the browser: https://blog.runneroutpost.com/tools/
- RunnerOutpost, private groups for running clubs: https://runneroutpost.com/
- Source: https://github.com/krasenslavov/runneroutpost-tools
MIT licence.
Metadata
Release files for runneroutpost-tools 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| runneroutpost_tools-1.0.0.tar.gz | 17.7 kB | Without provenance | Details for runneroutpost_tools-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runneroutpost_tools-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for runneroutpost_tools-1.0.0-py3-none-any.whl |
Total release size: 33.3 kB
Release files / runneroutpost_tools-1.0.0.tar.gz
| Download URL | runneroutpost_tools-1.0.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
312785ac595d3dfdbe9766aa7a3a939fd886e09b378e0816f008642892d47e79
|
|
BLAKE2b-256 checksum How to use checksums |
0ad6d1e752ccc9f582ae59bb33298c02ff46c3991b4d79aa8d8abc0385eba706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / runneroutpost_tools-1.0.0-py3-none-any.whl
| Download URL | runneroutpost_tools-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fe817dd9d2f47d7b9b8ea9b44bb9709c40c2f7977dca80d7156c9a24cd85fe8
|
|
BLAKE2b-256 checksum How to use checksums |
c932a7b14406425e21b180266164d19e1adeaedd9d871231cb19471aaa981eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for runneroutpost-tools 1.0.0
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.