A connector for Transit Logging apps
Find a file
2026-05-26 01:39:30 +02:00
.vscode Initial Commit 2026-01-13 22:38:36 +01:00
src/transitconnect Fixed some errors with serialization 2026-05-26 01:35:01 +02:00
tests/trainlog Fixed some errors with serialization 2026-05-26 01:35:01 +02:00
.gitignore Update .gitignore to include src/transitlogconnect.egg-info and .DS_Store 2026-05-14 19:27:49 +02:00
.python-version Initial Commit 2026-01-13 22:38:36 +01:00
pyproject.toml Bumped version 2026-05-26 01:39:30 +02:00
README.md Created a trainlog script that downloads trainlog trips. Tested the get_trips and get_trip_count methods. Closes #1 2026-02-13 22:22:12 +01:00
uv.lock Bumped version 2026-05-26 01:39:30 +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