{ "info": { "author": "A. Samuel Pottinger", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: Financial and Insurance Industry", "Intended Audience :: Information Technology", "Intended Audience :: Legal Industry", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Topic :: Sociology" ], "description": "Although Colorado enjoys excellent campaign finanance reporting regulation, the state publishes that data through single file archives containing CSV reports. The Colorado Secretary of State Elections Divison posts reports (contribution, expenditure, and loan data) through the Colorado Transparency in Contribution and Expenditure Reporting system. This micro-library provides programmatic access to that data source through automated URL generation, file download, archive extraction, and data interpretation.\n\nThis is an un-official library for retrieving campaign finance data and is not supported or endorsed by the State of Colorado.\n\nIT IS NO LONGER SUPPORTED AND IS NOT RECOMMENDED FOR FUTURE USE. NOT PYTHON 3 COMPAT.\n\n>>> import pycotracer\n>>>\n>>> # Report types: REPORT_LOAN_DATA, REPORT_CONTRIB_DATA, REPORT_EXPEND_DATA\n>>> all_2013_reports = pycotracer.get_report(2013)\n>>> loan_data_2012 = pycotracer.get_report(2012, pycotracer.REPORT_LOAN_DATA)\n>>>\n>>>\n>>> all_2013_reports.keys()\n['ExpenditureData', 'LoanData', 'ContributionData']\n>>> len(all_2013_reports['ExpenditureData'])\n8513\n>>> all_2013_reports['ExpenditureData'][0].keys()\n['City', 'FirstName', 'LastName', 'ExpenditureAmount', 'Electioneering', ...]\n>>>\n>>>\n>>> len(loan_data_2012)\n470\n>>> loan_data_2012[0].keys()\n['City', 'Zip', 'CommitteeType', 'State', 'Type', 'Amended', ...]", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/sampottinger/pycotracer/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Samnsparky/pycotracer", "keywords": "tracer political financial contributions colorado", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "pycotracer", "package_url": "https://pypi.org/project/pycotracer/", "platform": "", "project_url": "https://pypi.org/project/pycotracer/", "project_urls": { "Download": "https://github.com/sampottinger/pycotracer/archive/master.zip", "Homepage": "https://github.com/Samnsparky/pycotracer" }, "release_url": "https://pypi.org/project/pycotracer/0.4.3/", "requires_dist": null, "requires_python": "", "summary": "Unofficial Python micro-library providing programmatic access to Colorado Transparency in Contribution and Expenditure Reporting (TRACER) campaign finance data.", "version": "0.4.3" }, "last_serial": 5717979, "releases": { "0.4.3": [ { "comment_text": "", "digests": { "md5": "7f236ba692ee2de206c5462f1ba311b5", "sha256": "9b0b8d8532d9a42fa876aab6027da7ef5da3e04166c2f53e00b84e86753978a2" }, "downloads": -1, "filename": "pycotracer-0.4.3.tar.gz", "has_sig": false, "md5_digest": "7f236ba692ee2de206c5462f1ba311b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10390, "upload_time": "2019-08-23T00:13:10", "url": "https://files.pythonhosted.org/packages/3d/d0/91a36a8495808b8f34c8c7db33ec7f7efbfb174dd2f669737555f5691795/pycotracer-0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f236ba692ee2de206c5462f1ba311b5", "sha256": "9b0b8d8532d9a42fa876aab6027da7ef5da3e04166c2f53e00b84e86753978a2" }, "downloads": -1, "filename": "pycotracer-0.4.3.tar.gz", "has_sig": false, "md5_digest": "7f236ba692ee2de206c5462f1ba311b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10390, "upload_time": "2019-08-23T00:13:10", "url": "https://files.pythonhosted.org/packages/3d/d0/91a36a8495808b8f34c8c7db33ec7f7efbfb174dd2f669737555f5691795/pycotracer-0.4.3.tar.gz" } ] }