{ "info": { "author": "Jake Kara", "author_email": "jake@jakekara.com", "bugtrack_url": null, "classifiers": [], "description": "# FEC API wrapper\n\nby Jake Kara\njkara@trendct.org\n\n#### Example 1: Quickstart\n\n >>> from fec import Fec\n >>> conn = Fec(YOUR_API_KEY)\n >>> ret = conn.get(\"/candidates\")\n >>> print ret\n\n#### Example 2: Optionals\n\n ret = conn.get(\"/candidates\",\n pages=[1,2,3,4,5], # Specify which pages to retrieve\n params=\"&cycle=2012&cycle=2016&office=P\") #Specify parameters\n\n#### Unstable code warning!\n\nAt the moment I don't have plans to develop this into a stable and\nbackwards compatible code base. I haven't added a lot of conveniences\nlikehard-coding queries you can make. I'm publishing this code in case\nsomeone else finds it useful to see how to build a quick API wrapper.\n\n\nHere are some features I do plan to add:\n\n1. A parameter-forming method so you don't have to pass\nall the URL parameters in one mashed-up string.\n\n2. A method to get all pages of results\n\n3. Rate limit-friendliness? Maybe I'll make this prevent you from\nrunning over API rate limits. Maybe not.\n\n4. Maybe I will add convenience methods for common queries.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://jakekara.com", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "fec", "package_url": "https://pypi.org/project/fec/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fec/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://jakekara.com" }, "release_url": "https://pypi.org/project/fec/0.0/", "requires_dist": null, "requires_python": null, "summary": "Simple FEC API wrapper", "version": "0.0" }, "last_serial": 2301509, "releases": { "0.0": [ { "comment_text": "", "digests": { "md5": "4ae728b29fe5b2381153e4048a7df62c", "sha256": "8b8c652077eff012f09ce652aa6b0ea15fba0e813328566c8f8fd2dd3e431490" }, "downloads": -1, "filename": "fec-0.0.tar.gz", "has_sig": false, "md5_digest": "4ae728b29fe5b2381153e4048a7df62c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1052, "upload_time": "2016-08-25T00:40:16", "url": "https://files.pythonhosted.org/packages/2a/d0/694a9c27731d7afd194281aaafb2ac5bb260f6149892479c385dd7aaf28f/fec-0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4ae728b29fe5b2381153e4048a7df62c", "sha256": "8b8c652077eff012f09ce652aa6b0ea15fba0e813328566c8f8fd2dd3e431490" }, "downloads": -1, "filename": "fec-0.0.tar.gz", "has_sig": false, "md5_digest": "4ae728b29fe5b2381153e4048a7df62c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1052, "upload_time": "2016-08-25T00:40:16", "url": "https://files.pythonhosted.org/packages/2a/d0/694a9c27731d7afd194281aaafb2ac5bb260f6149892479c385dd7aaf28f/fec-0.0.tar.gz" } ] }