Crate feco3

source ·
Expand description

FECo3 is a library for parsing .fec files from the US Federal Election Commission.

.fec files are binary files that contain campaign finance data. This library provides an efficient, flexible, stream-oriented parser for these files.

The parser takes a byte stream as input, which makes it flexible enough to parse files from a variety of sources, including local files, HTTP streams, or a custom source.

FECo3 includes a framework for writing the parsed data. Currently, writing to a directory of .csvs or .parquet files are built in, but the framework is designed to be extensible to other formats.

There are bindings for python available on the repo.

Modules

Structs

  • The cover line in an FecFile.
  • A FEC file, the low-level core data structure of this crate.
  • The header of a FecFile.

Enums

  • The error type for this crate.