{"id":13514308,"url":"https://github.com/stmcli/stmcli","last_synced_at":"2026-04-09T14:39:00.159Z","repository":{"id":57471509,"uuid":"53708630","full_name":"stmcli/stmcli","owner":"stmcli","description":"The unofficial STM CLI client.","archived":false,"fork":false,"pushed_at":"2019-08-16T12:38:56.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-02T16:15:58.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stmcli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-12T02:09:44.000Z","updated_at":"2021-01-07T19:25:59.000Z","dependencies_parsed_at":"2022-09-26T17:40:28.451Z","dependency_job_id":null,"html_url":"https://github.com/stmcli/stmcli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stmcli%2Fstmcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stmcli%2Fstmcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stmcli%2Fstmcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stmcli%2Fstmcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stmcli","download_url":"https://codeload.github.com/stmcli/stmcli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413377,"owners_count":20773053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:00:52.358Z","updated_at":"2025-12-13T18:46:09.516Z","avatar_url":"https://github.com/stmcli.png","language":"Python","funding_links":[],"categories":["Projects"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/stmcli/stmcli.svg?branch=master)](https://travis-ci.org/stmcli/stmcli)\n# stmcli\nThe unofficial STM CLI client.\n\nstmcli aims to use the data made available by the [Société de transport de Montréal](http://www.stm.info/)\nto create an easy to use command line application to access bus/metro informations.\n\nThis tool does not use any information of STM real time. It only retrieve the scheduled times for bus. \n\n## Installation\n\n``` pip3 install stmcli ```\n\n(stmcli is only compatible with python3+ and GNU/Linux)\n\n## Usage\n\n```\nusage: stmcli [-h] [-b BUS_NUMBER] [-s BUS_STOP_CODE] [-n NUMBER_DEPARTURE]\n              [-d DATE] [-t TIME] [-m METRO] [-y]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -b BUS_NUMBER, --bus-number BUS_NUMBER\n                        # of the bus\n  -s BUS_STOP_CODE, --bus-stop-code BUS_STOP_CODE\n                        Code of the bus stop\n  -n NUMBER_DEPARTURE, --number-departure NUMBER_DEPARTURE\n                        The number of departures to print. Only works with\n                        both -b and -s specified\n  -d DATE, --date DATE  specify the date to use when getting Departure times.\n                        Format: aaaammjj\n  -t TIME, --time TIME  specify the time to use when getting Departure times.\n                        Format: HH:MM\n  -m METRO, --metro METRO\n                        print the metro status for a given line require an\n                        internet connection. Accepted options: green, orange,\n                        yellow, blue and all\n  -y, --force-update    Do not ask before updating\n```\n### Bus\nTo get the next departures times you need to specify at least -b and -s which are the bus number and the bus stop code.\n\nFor example: ``` stmcli -b 150 -s 52150 ```\n\nwould print the next 10 departures times of the bus \"150 René-Lévesque EST\" at the \"du Sussex / René-Lévesque (52150)\" bus stop.\n\nIf you don't know your bus stop code or your bus number you can specify only -b or -s. specifying only -b will print all of the bus stop and -s alone will print all bus number for this stop code.\n\nBy using the -d and/or the -t arguments you can get bus departures times from sometime in the future.\n\nFor example: ``` stmcli -b 150 -s 52150 -d 20160328 -t 06:30 ```\n\nWould print almost the same thing as our first example The only exception is that it will print the 10 next departures after 6:30 AM on march 28th 2016.\n\n### Metro\nYou can also get the current status of the metro with ```-m```.\n\nFor example: ``` stmcli -m green ``` will give you the current status of the green line.\n\n## Language\n\nYou can switch the output language of stmcli by editing your ```~/.stmcli/lang.txt```. (The file is generated the first time you run stmcli)\nThe default is english.\n\nSwitch to french with: ```echo \"fr\" \u003e ~/.stmcli/lang.txt```\n\nSwitch to english with: ```echo \"en\" \u003e ~/.stmcli/lang.txt```\n\n## Developper\nSome information to generate a new package for local deployment\n\n* python3 setup.py bdist_wheel\n* pip3 install stmcli-1.*-py3-none-any.whl --user --upgrade\n* Linux user: the stmcli command is available at $HOME/.local/bin/stmcli\n* Verify installed is available: TBD\n\n### Investigate database\n\nBy default, the database is createdin ~/.stmcli/stm.db as sqlite format.\n\nUseful tool will be sqlitebrowser https://github.com/sqlitebrowser/sqlitebrowser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstmcli%2Fstmcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstmcli%2Fstmcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstmcli%2Fstmcli/lists"}