Skip to content

Every elected official and public employee who makes or influences governmental decisions is required to submit a Statement of Economic Interest, also known as the Form 700. In Oakland, 700 data is handled by a vendor, Netfile. It is public, but is not easily accessed. This projects extracts the data, transforms into SQL, and loads it into a Goo…

License

Notifications You must be signed in to change notification settings

openoakland/oakpec-sei

Repository files navigation

Public Ethics Data Downloader CircleCI codecov

This repository contains scripts used to download ethics data for the City of Oakland.

We currently support retrieving the 2018-2019 FPPC Form 700 Statement of Economic Interests. The data is downloaded from Netfile and uploaded to a data warehouse.

Usage

The logic to download and parse filings is normally deployed to Google Cloud as cloud functions.

The logic can also be run locally as scripts in the scripts directory. download_form_700_data.py will download all filings to scripts/filings. parse_local_data.py will extract data from the downloaded files to a SQLite database.

These scripts can be run with a command like the one below:

python -m scripts.download_form_700_data

Development

We use pipenv to manage environments and requirements, so install that first.

  1. Install the requirements for this project:

    make requirements
    
  2. Run code quality inspection:

    make quality
    
  3. Run tests:

    make test
    

Deployment

This code is deployed to Google Cloud as functions responsible for (a) downloading filings and (b) performing ETL. The functions can all be deployed by running ./deploy.sh.

About

Every elected official and public employee who makes or influences governmental decisions is required to submit a Statement of Economic Interest, also known as the Form 700. In Oakland, 700 data is handled by a vendor, Netfile. It is public, but is not easily accessed. This projects extracts the data, transforms into SQL, and loads it into a Goo…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published