{ "info": { "author": "Pascal Boardman / Philippe Dagenais", "author_email": "pascalboardman@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "[![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\u00e9t\u00e9 de transport de Montr\u00e9al](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\u00e9-L\u00e9vesque EST\" at the \"du Sussex / Ren\u00e9-L\u00e9vesque (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\" > ~/.stmcli/lang.txt```\n\nSwitch to english with: ```echo \"en\" > ~/.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", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stmcli/stmcli", "keywords": "stm montreal autobus bus schedule horaire", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "stmcli", "package_url": "https://pypi.org/project/stmcli/", "platform": "", "project_url": "https://pypi.org/project/stmcli/", "project_urls": { "Homepage": "https://github.com/stmcli/stmcli" }, "release_url": "https://pypi.org/project/stmcli/1.2.1/", "requires_dist": null, "requires_python": "", "summary": "The unofficial STM CLI client.", "version": "1.2.1" }, "last_serial": 4663986, "releases": { "1.0.0": [], "1.0.1": [ { "comment_text": "", "digests": { "md5": "beb679b775d98861c91a1353cec981dd", "sha256": "01ff5b7125aec165ef3d2d9e6da1e2ab893ab582c07798be6ce3a89178aa2bfe" }, "downloads": -1, "filename": "stmcli-1.0.1.tar.gz", "has_sig": false, "md5_digest": "beb679b775d98861c91a1353cec981dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5130, "upload_time": "2016-03-29T02:26:07", "url": "https://files.pythonhosted.org/packages/3d/36/43e7f20a7ae3b46b6c2843919e456021dd340dac69203bdc685e0084a3db/stmcli-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "536bf817e23c12bbdaaf62b096d1fbaa", "sha256": "02f49e445cc3b3704875d2b85a156599f5907ecea24b250a534a3d2cbdbe96fe" }, "downloads": -1, "filename": "stmcli-1.0.2.tar.gz", "has_sig": false, "md5_digest": "536bf817e23c12bbdaaf62b096d1fbaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5109, "upload_time": "2016-03-29T22:46:48", "url": "https://files.pythonhosted.org/packages/96/31/829e605117d5916b900503b85296b14897053f2847091d26fa71939b0443/stmcli-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "4ce1d5aa9017574ccc33b29948f4f8c8", "sha256": "a384f553328a291c7600781d2a64d5a57fb461afabed81efec5c5c30a2a22433" }, "downloads": -1, "filename": "stmcli-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4ce1d5aa9017574ccc33b29948f4f8c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5872, "upload_time": "2016-04-01T12:10:24", "url": "https://files.pythonhosted.org/packages/83/93/08fafd5758315574e3635c456b458016aa7f62a782100f813035703663a9/stmcli-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "c3796117c8c7049ee4ddbae366e3e80f", "sha256": "836241f5020ce00c2190e8cb8635923f4c04949910f1996b82229af9325f2800" }, "downloads": -1, "filename": "stmcli-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c3796117c8c7049ee4ddbae366e3e80f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7368, "upload_time": "2018-04-05T21:52:40", "url": "https://files.pythonhosted.org/packages/ce/42/9ab112215096f02bde0e7293848f26ba8cb93627eece06a48404e04be30e/stmcli-1.0.4.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "2f3e9db74481ea52b08dfa955a0b4a84", "sha256": "25ac975f66b7cb5a461da61c0d9bed1eb0527fdcf585ba9e1a8c14cb14242a8e" }, "downloads": -1, "filename": "stmcli-1.1.3.tar.gz", "has_sig": false, "md5_digest": "2f3e9db74481ea52b08dfa955a0b4a84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8010, "upload_time": "2018-07-12T03:12:18", "url": "https://files.pythonhosted.org/packages/d4/5b/bc000fbe476f5b094178a957718989854aa3bf0de0d0b1a5b37fe388308e/stmcli-1.1.3.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "02cf9a8095c8e9bc415b5caa4fb4e56e", "sha256": "0c551ce2a268aade7e22b2bcddc523202ca512f2172e5fc6f2cdc4f78ce71b4d" }, "downloads": -1, "filename": "stmcli-1.2.1.tar.gz", "has_sig": false, "md5_digest": "02cf9a8095c8e9bc415b5caa4fb4e56e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10086, "upload_time": "2019-01-05T18:28:27", "url": "https://files.pythonhosted.org/packages/1a/d6/60ac8ed841a3e4a25a974892a70ebd48d20b93649b8906abf42ca8fa737d/stmcli-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "02cf9a8095c8e9bc415b5caa4fb4e56e", "sha256": "0c551ce2a268aade7e22b2bcddc523202ca512f2172e5fc6f2cdc4f78ce71b4d" }, "downloads": -1, "filename": "stmcli-1.2.1.tar.gz", "has_sig": false, "md5_digest": "02cf9a8095c8e9bc415b5caa4fb4e56e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10086, "upload_time": "2019-01-05T18:28:27", "url": "https://files.pythonhosted.org/packages/1a/d6/60ac8ed841a3e4a25a974892a70ebd48d20b93649b8906abf42ca8fa737d/stmcli-1.2.1.tar.gz" } ] }