{ "info": { "author": "D. van Gorkum", "author_email": "djvg@djvg.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "\nSimplyGoPy: talk to transit (in Singapore)\n==========================\nSimplyGoPy enables you to talk to [SimplyGo](https://simplygo.transitlink.com.sg/) using Python.\n\nFeatures\n---------------\nCurrently basic features are supported:\n\n- Login with SimplyGo login credentials.\n- Retrieve notifications.\n- Retrieve payment cards (you use to tap in/out at MRT/bus)\n- Retrieve transactions\n\nAuthentication\n------------\nSimplyGo uses AES-CBC encryption when sending username and password to their API. The key/initialization vector are statically stored in `p014sg.transitlink.base.Constants` (from their Android application). \nYou can encrypt your username (e-mail address) and password by running:\n``` {.sourceCode .bash}\n$ simplygo-encrypt mailbox@example.com\nLOF3yVaERNdbNxfw1ctm63Dwqbx8ha98UR7GUEby3Pw=\n```\nOr use `simplygo-decrypt` to do the opposite:\n``` {.sourceCode .bash}\n$ simplygo-decrypt LOF3yVaERNdbNxfw1ctm63Dwqbx8ha98UR7GUEby3Pw=\nmailbox@example.com\n```\nYou can use the pre-encrypted values when starting the `simplygo` module:\n``` {.sourceCode .python}\nimport simplygo\ntalk = simplygo.Ride('< encrypted username>', '')\n```\nInstallation\n------------\nSimple using pip:\n``` {.sourceCode .bash}\n$ pipenv install SimplyGoPy\n\ud83d\ude8e \ud83d\ude87\n```\nExamples\n------------\nGet notifications:\n\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_notifications())\n```\nGet card information:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_card_info())\n```\nGet user information:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_card_info())\n```\nGet transactions of today:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_transactions('< UniqueCode from get_card_info() >'))\n```\nGet transactions from date X till today:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_transactions('< UniqueCode from get_card_info() >', '01-01-2019'))\n```\nGet transactions from date X till Y:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_transactions('< UniqueCode from get_card_info() >', '01-06-2019', '01-07-2019'))\n```\nGet all transactions of this month:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_transactions_this_month())\n```\nGet transactions of this month for specific card:\n``` {.sourceCode .python}\nimport simplygo\nfrom pprint import pprint\nrider = simplygo.Ride('', '')\npprint(rider.get_transactions_this_month('< UniqueCode from get_card_info() >'))\n```\n\nDisclaimer\n------------\nI'm in no way affiliated with SimplyGo, Transit Link, or LTA.\n\n```\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TheDJVG/SimplyGoPy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "simplygopy", "package_url": "https://pypi.org/project/simplygopy/", "platform": "", "project_url": "https://pypi.org/project/simplygopy/", "project_urls": { "Homepage": "https://github.com/TheDJVG/SimplyGoPy" }, "release_url": "https://pypi.org/project/simplygopy/2019.9.1/", "requires_dist": [ "pycryptodome", "requests" ], "requires_python": ">=3.6", "summary": "Python 3 module to talk to SimplyGo from Transit Link in Singapore", "version": "2019.9.1" }, "last_serial": 5829207, "releases": { "2019.9.1": [ { "comment_text": "", "digests": { "md5": "8abf3eb71a507444e4e49a9a9add1612", "sha256": "f90bf4a3ab1e7f350b940cfd059ed5ec199311d7a9eec366bc1fb9e1c124f7cd" }, "downloads": -1, "filename": "simplygopy-2019.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8abf3eb71a507444e4e49a9a9add1612", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10334, "upload_time": "2019-09-14T12:51:46", "url": "https://files.pythonhosted.org/packages/1b/35/a1704e5793375fbe2e0d0ceefafa9a5835d3bed491a619dc7723b2ca54f5/simplygopy-2019.9.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8abf3eb71a507444e4e49a9a9add1612", "sha256": "f90bf4a3ab1e7f350b940cfd059ed5ec199311d7a9eec366bc1fb9e1c124f7cd" }, "downloads": -1, "filename": "simplygopy-2019.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8abf3eb71a507444e4e49a9a9add1612", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10334, "upload_time": "2019-09-14T12:51:46", "url": "https://files.pythonhosted.org/packages/1b/35/a1704e5793375fbe2e0d0ceefafa9a5835d3bed491a619dc7723b2ca54f5/simplygopy-2019.9.1-py3-none-any.whl" } ] }