A connector for Transit Logging apps
- Python 100%
| .vscode | ||
| src/transitconnect | ||
| tests/trainlog | ||
| .gitignore | ||
| .python-version | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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