{ "info": { "author": "Your friendly neighborhood transit rider-hackers", "author_email": "goldengate88@systemfu.com", "bugtrack_url": null, "classifiers": [], "description": "![logo](logo.png)\n\n`clippercard` is an unofficial python client for clippercard.com, written in Python.\n\n-----\n\n# Why\n\nNot only is the [clippercard web site](https://www.clippercard.com) a total UX/UI disaster, its behind-the-scene's HTML structure and HTTP protocol is a complete exercise in palmface. This library aims to provide an unofficial but sensible interface to the official web service.\n\n# Project Goal\n\nI enjoy the actual user experience of ClipperCard on buses and trains. My complaints about the service are purely isolated to its web interface. I saw a problem, and I solved it for myself, that's all.\n\nAs an advocate for data accessibility, I believe our dollars, our votes, our voices and our actions can nudge institutions in the direction we'd like them to go. At Bay Area's [Metropolitan Transportation Commission](http://www.mtc.ca.gov/about_mtc/staff_contacts.htm), I am sure there are a lot of great people doing good work to the best of their ability, and within the context of prioritization, organizational structure and resources available to them.\n\nI encourage the staff of MTA reading this project to see this effort as a nudge for a public and official API. The moment they put up an API that obsoletes this project, I will happily direct followers to the official solution. If you'd like them to increase attention to data accessibility, you can send them an email at info@mtc.ca.gov and tell them I sent you.\n\n# Features\n\n- Profile Data\n- Multiple cards' data\n- For each card, multiple products and balances\n\nI don't have access to all products loadable on the ClipperCard, so transit product variant support is limited to what I personally use for now. If you'd like me to add support for your product, send me the page source from your account home page: https://www.clippercard.com/ClipperCard/dashboard.jsf\n\n# Security and Privacy\n\nIt's important to point out that:\n\n- This project does not collect your personal information or clippercard.com login credentials.\n- This project is not a hosted service, your data is not stored or sent to any 3rd party service.\n\nFor now, this project is targeted at other software developers, who are capable of assessing my source code for security implications.\n\n\n# Installation\n\nTo install clippercard, simply:\n\n```sh\n$ pip install clippercard\n```\n\nUsage\n-----\n\n```python\nimport clippercard\nsession = clippercard.Session('username', 'password')\nprint(session.user_profile)\nfor c in session.cards:\n print(c)\n```\n\nYou also get a super convenient command line binary ``clippercard``::\n\n```sh\n$ clippercard -h # see usage information\n$ clippercard summary\n+---------+-------------------------------------------+\n| name | JOHN SMITH |\n| email | jsmith@example.com |\n| address | 1 Main St, San Francisco, CA 94103 |\n| phone | 415-555-5555 |\n+---------+-------------------------------------------+\n+---------------+------------+-------+--------+----------------+--------+\n| Card | Serial | Type | Status | Product | Value |\n+---------------+------------+-------+--------+----------------+--------+\n| GGB75 | 1234567890 | ADULT | Active | BART HVD 60/64 | $16.20 |\n| GGB75 | 1234567890 | ADULT | Active | Cash value | $32.40 |\n| Standard Card | 1234567891 | ADULT | Active | Cash value | $64.80 |\n+---------------+------------+-------+--------+----------------+--------+\n```\n\nIf you wish to use clippercard without specifying username/password on the CLI, create a file ``~/.clippercardrc`` with this format::\n\n\n```ini\n[default]\nusername = jsmith@example.com\npassword = superseekrit\n```\n\nYou may toggle accounts via the ``--account`` flag on the command line to access one of several configs in the file::\n\n```ini\n[default]\nusername = \npassword = \n\n[other]\nusername = \npassword = \n``` \n\nThe `other` credentials can then be accessed via::\n\n```sh\n$ clippercard summary --account=other\n```\n\n# Contribute\n\n1. fork the repo to your personal GitHub account\n1. make your changes in your repo\n1. for Python source, follow local style consistency and PEP8\n1. run `pyflakes`/`frosted` on your diffs\n1. add unit tests, make sure they pass (just run `pytest` \ud83d\ude0e)\n1. remember to bump the version number wherever applies\n1. add a new line for your revision to `CHANGES.txt` describing your change\n1. send a pull request to https://github.com/clippercard/clippercard-python w/ explanation of problem statement and design decisions\n1. respond to all pull request code review requests in your branch and submit the requested changes in new commits\n1. communicate with the maintainers to merge the finalized pull request and publish your changes", "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/clippercard/clippercard-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "clippercard", "package_url": "https://pypi.org/project/clippercard/", "platform": "", "project_url": "https://pypi.org/project/clippercard/", "project_urls": { "Homepage": "https://github.com/clippercard/clippercard-python" }, "release_url": "https://pypi.org/project/clippercard/0.5.0/", "requires_dist": null, "requires_python": "", "summary": "Unofficial Python API for Clipper Card (transportation pass used in the San Francisco Bay Area)", "version": "0.5.0" }, "last_serial": 6001797, "releases": { "0.3.3": [ { "comment_text": "", "digests": { "md5": "ff8c896b454ddd7c4b22f27483eaeb9f", "sha256": "83d06f4e69141614921548ea709b8748cf0cc8d87e23cbde83d1762f88ff829b" }, "downloads": -1, "filename": "clippercard-0.3.3.tar.gz", "has_sig": false, "md5_digest": "ff8c896b454ddd7c4b22f27483eaeb9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8443, "upload_time": "2017-09-06T15:32:38", "url": "https://files.pythonhosted.org/packages/b7/1f/43e072ea8564f33a7706e4e0f85a6ca967c4fd0ffa95748255eaac795392/clippercard-0.3.3.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "63ecc14a63d3a754f197e7a416ef884e", "sha256": "10002292c3956adfb6d700ce0345783b3ae47743ee6d75cb9dd39a090e041fd1" }, "downloads": -1, "filename": "clippercard-0.3.5.tar.gz", "has_sig": false, "md5_digest": "63ecc14a63d3a754f197e7a416ef884e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8450, "upload_time": "2017-09-06T15:42:42", "url": "https://files.pythonhosted.org/packages/5f/81/e53507d4fc9a101853993c037952119a56f6cd7dc2e265dc9bb296929d71/clippercard-0.3.5.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "88fe403607c6416a4ab5a8f3f78e988e", "sha256": "e87f02dbdc9dc5362d14c9ec62a91eef3f0a332553c55253853b0cdbacf7e2ca" }, "downloads": -1, "filename": "clippercard-0.4.0.tar.gz", "has_sig": false, "md5_digest": "88fe403607c6416a4ab5a8f3f78e988e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8497, "upload_time": "2017-10-05T06:53:56", "url": "https://files.pythonhosted.org/packages/cd/ac/c3ebc12204329576afeaa44c470c6e861cbc08864f930a811705efbef534/clippercard-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "d6d3e632ecb93f36a31c730f73e82646", "sha256": "c3449142f395de995d6c94b12e6bedfc067032ffee7709316002569527f9019b" }, "downloads": -1, "filename": "clippercard-0.4.1.tar.gz", "has_sig": false, "md5_digest": "d6d3e632ecb93f36a31c730f73e82646", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8533, "upload_time": "2018-10-09T01:07:58", "url": "https://files.pythonhosted.org/packages/49/90/55a63b3f2fd8c8d8db908cd6a36e0364480f483bebf9be3324944e2c6fd7/clippercard-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "c9d1d2674e0d51e8e91a1be49e525464", "sha256": "26f84a376a373aaada4dbb2d8976735edd8e2276c86c62efbc6f4dc856e7ad5f" }, "downloads": -1, "filename": "clippercard-0.5.0.tar.gz", "has_sig": false, "md5_digest": "c9d1d2674e0d51e8e91a1be49e525464", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9684, "upload_time": "2019-10-20T03:32:37", "url": "https://files.pythonhosted.org/packages/e4/b6/47ac5d51a65d70486ddbbe79a8554a31bef5dd870624effaabe09a57d46e/clippercard-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c9d1d2674e0d51e8e91a1be49e525464", "sha256": "26f84a376a373aaada4dbb2d8976735edd8e2276c86c62efbc6f4dc856e7ad5f" }, "downloads": -1, "filename": "clippercard-0.5.0.tar.gz", "has_sig": false, "md5_digest": "c9d1d2674e0d51e8e91a1be49e525464", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9684, "upload_time": "2019-10-20T03:32:37", "url": "https://files.pythonhosted.org/packages/e4/b6/47ac5d51a65d70486ddbbe79a8554a31bef5dd870624effaabe09a57d46e/clippercard-0.5.0.tar.gz" } ] }