A connector for Transit Logging apps
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-16 21:18:23 +02:00
.vscode Initial Commit 2026-01-13 22:38:36 +01:00
src/transitconnect Added DeepDiff objects to the notification handler replies, in order to know what has changed. Bumped patch version. 2026-06-16 21:18:23 +02:00
tests Added DeepDiff objects to the notification handler replies, in order to know what has changed. Bumped patch version. 2026-06-16 21:18:23 +02:00
.gitignore Added DeepDiff objects to the notification handler replies, in order to know what has changed. Bumped patch version. 2026-06-16 21:18:23 +02:00
.python-version Initial Commit 2026-01-13 22:38:36 +01:00
pyproject.toml Added DeepDiff objects to the notification handler replies, in order to know what has changed. Bumped patch version. 2026-06-16 21:18:23 +02:00
README.md Updated json string serialisation to not convert ' to " 2026-06-12 17:54:43 +02:00
uv.lock Added DeepDiff objects to the notification handler replies, in order to know what has changed. Bumped patch version. 2026-06-16 21:18:23 +02:00

Transit Log Connect

An application and library for connecting various transit logging services

Currently supports:

Command Line Scripts

trainlog

This allows downloading information from trainlog. Use download --raw to get the raw json.

Usage: trainlog [OPTIONS] COMMAND [ARGS]...

Options:
  -u, --username TEXT  Trainlog username  [required]
  -p, --password TEXT  Trainlog password  [required]
  --dev / --prod       Use development server instead of production
  -v, --verbose        Enable debug output
  --help               Show this message and exit.

Commands:
  download

Usage: trainlog download [OPTIONS] [NUMBER]

Options:
  --start INTEGER        Starting index for trips to download
  --projects / --past    Download projects or past trainlogs
  --raw                  Print raw response instead of parsed trips
  -o, --output FILENAME  Output file to save the response. '-' for stdout
  --help                 Show this message and exit.

The following environement variables will substitute those options:

TRAINLOG_USERNAME=
TRAINLOG_PASSWORD=
TRAINLOG_VERBOSE=true
TRAINLOG_DEV=true # 'false' for prod

API

Trainlog

You can