FastFEC is a command-line tool and library for parsing .fec files quickly written in C.

Showing all 2 rows
fec_ver_#,soft_name,soft_ver#,dec/nodec,date_fmat,namedelim,form_name,fec_idnum,committee,control_#,SCHEDULE_COUNTS_sa11a1,SCHEDULE_COUNTS_sb23
2.02,fecfile,3,dec,ccyymmdd,^,f3xn,C00713161,Entertainment 720,g385236r,00090,00051

Demo

Upload a .fec file to parse it and download a zip of .csv files entirely in-browser using WebAssembly.

View demo ≫

Installation

View instructions:

Options:

Python library

FastFEC is available as an installable Python library. pip install fastfec to get started. Learn more here.

Command-line usage

Once FastFEC has been installed and is in your path, you can run the program by calling fastfec in your terminal:

Usage: fastfec [flags] <id, file, or url> [output directory=output] [override id]
	

The CLI will download or read from disk the specified filing and then write output CSVs for each form type in the output directory. The paths of the outputted files are:

You can also pipe the output of another command in by following this usage:

[some command] | fastfec [flags] <id> [output directory=output]
	

Flags

The CLI supports the following flags:

The short form of flags can be combined, e.g. -is would include filing IDs and suppress output.

Examples

fastfec -s 13360 fastfec_output/

Time benchmarks

Using massive 1464847.fec (8.4gb) on an M1 MacBook Air

Presentation slides

We presented FastFEC at NICAR 2022. You can view the slides here.

Source code

github.com/washingtonpost/FastFEC