{ "info": { "author": "Chris Del Guercio", "author_email": "cdelguercio@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# govtrack-python\n\nA Python library for the GovTrack.us API v2.\n\nBased on https://github.com/markgx/govtrack-node/\n\nFor full API docs visit [https://www.govtrack.us/developers/api](https://www.govtrack.us/developers/api)\n\n## Installation\n\n```\npip install govtrack\n```\n\n## Usage\n\n### Instantiate the GovTrackClient like so:\n\n```\nfrom govtrack.api import GovTrackClient\n\nclient = GovTrackClient()\n```\n\n### Calling the API:\n\n##### 1. Choose an endpoint\n\n```\nclient.bill()\nclient.cosponsorship()\nclient.person()\nclient.role()\nclient.vote()\nclient.vote_voter()\n```\n\n##### 2a. Filter the results\n\n```\nclient.person({'lastname': 'Kennedy'})\n```\n\n##### 2b. Filter with a 'id' to get a single result (or get none if the 'id' doesn't exist)\n\n```\nclient.person({'id': 123})\n```\n\n##### 2c. Provide an integer to get the same affect as 2b\n\n```\nclient.person(123)\n```\n\n##### 3. Receive a response\n\nSingle response if you used an 'id':\n```\n{\n 'id': 65,\n 'bill_type': 'resolution',\n 'congress': 113\n}\n```\n\nMultiple response if you used filters:\n```\n{\n 'meta': {\n 'some_meta_key_1': 123,\n 'some_meta_key_2': 'abc'\n },\n 'objects': [\n {\n 'id': 65,\n 'bill_type: 'resolution',\n 'congress': 113\n },\n {\n 'id': 66,\n 'bill_type': 'resolution',\n 'congress': 114\n }\n ]\n}\n```\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/cdelguercio/govtrack-python/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cdelguercio/govtrack-python", "keywords": "govtrack,api,python", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "govtrack", "package_url": "https://pypi.org/project/govtrack/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/govtrack/", "project_urls": { "Download": "https://github.com/cdelguercio/govtrack-python/tarball/0.1", "Homepage": "https://github.com/cdelguercio/govtrack-python" }, "release_url": "https://pypi.org/project/govtrack/0.1/", "requires_dist": null, "requires_python": null, "summary": "A Python library for the GovTrack.us API v2.", "version": "0.1" }, "last_serial": 1925082, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "22894a2c0eda4ddbe17918a4e5817718", "sha256": "b550229decfd317f6bf7d7cde304a3882723f8243475c7d6d6efbec0259c366e" }, "downloads": -1, "filename": "govtrack-0.1.tar.gz", "has_sig": false, "md5_digest": "22894a2c0eda4ddbe17918a4e5817718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9175, "upload_time": "2016-01-27T08:32:27", "url": "https://files.pythonhosted.org/packages/a9/4c/3d36ea332b5200aa3e2ff7eb53476ef4e6a8943153ac63c263036bac7fb6/govtrack-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22894a2c0eda4ddbe17918a4e5817718", "sha256": "b550229decfd317f6bf7d7cde304a3882723f8243475c7d6d6efbec0259c366e" }, "downloads": -1, "filename": "govtrack-0.1.tar.gz", "has_sig": false, "md5_digest": "22894a2c0eda4ddbe17918a4e5817718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9175, "upload_time": "2016-01-27T08:32:27", "url": "https://files.pythonhosted.org/packages/a9/4c/3d36ea332b5200aa3e2ff7eb53476ef4e6a8943153ac63c263036bac7fb6/govtrack-0.1.tar.gz" } ] }