This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description

# FEC API wrapper

by Jake Kara

#### Example 1: Quickstart

>>> from fec import Fec
>>> conn = Fec(YOUR_API_KEY)
>>> ret = conn.get("/candidates")
>>> print ret

#### Example 2: Optionals

ret = conn.get(“/candidates”,
pages=[1,2,3,4,5], # Specify which pages to retrieve params=”&cycle=2012&cycle=2016&office=P”) #Specify parameters

#### Unstable code warning!

At the moment I don’t have plans to develop this into a stable and backwards compatible code base. I haven’t added a lot of conveniences likehard-coding queries you can make. I’m publishing this code in case someone else finds it useful to see how to build a quick API wrapper.

Here are some features I do plan to add:

1. A parameter-forming method so you don’t have to pass all the URL parameters in one mashed-up string.

  1. A method to get all pages of results

3. Rate limit-friendliness? Maybe I’ll make this prevent you from running over API rate limits. Maybe not.

  1. Maybe I will add convenience methods for common queries.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fec-0.0.tar.gz (1.1 kB) Copy SHA256 Checksum SHA256 Source Aug 25, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting