Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (25 loc) · 660 Bytes

api.rst

File metadata and controls

36 lines (25 loc) · 660 Bytes

Python API

Elex provides a Python API that encapsulates Associated Press Election API results as Python objects.

To use the election loader manually from within your project:

from elex.api import Election

election = Election(electiondate='2015-11-03', testresults=False, liveresults=True, is_test=False)
races = election.races

Now you can process or load races.

Models:

api/election api/reportingunit api/race api/candidate api/ballotmeasure api/candidatereportingunit api/baseobject api/elections

Utilities:

api/utils api/maps