Module Expr Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return ListComp TupleLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Str Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Str Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore BinOpAdd Call AttributeLoad Str attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Assign NameStore BinOpAdd Call AttributeLoad Str attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotEq SubscriptLoad NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If SubscriptLoad NameLoad Index Str body Return SubscriptLoad NameLoad Index Str orelse Return SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A 
Texas has CSV files containing county-level and statewide results for all offices
for all years back to 2000. All of the files are pre-processed and available on Github at
https://github.com/openelections/openelections-data-tx.
 os.path join N/A json N/A datetime N/A urlparse openelex PROJECT_ROOT openelex.base.datasource BaseDatasource openelex.lib build_raw_github_url Datasource N/A BaseDatasource N/A mappings N/A N/A self year N/A None N/A N/A Return array of dicts containing source url and
        standardized filename for raw results file, along
        with other pieces of metadata
         N/A mappings N/A N/A N/A yr elecs N/A N/A N/A N/A self elections year items N/A N/A N/A N/A mappings extend N/A N/A self _build_metadata yr elecs N/A mappings N/A target_urls N/A N/A self year N/A None N/A N/A Get list of source data urls, optionally filtered by year N/A N/A N/A item N/A raw_url N/A item N/A N/A self mappings year N/A filename_url_pairs N/A N/A self year N/A None N/A N/A N/A N/A N/A mapping N/A generated_filename N/A N/A self _url_for_fetch mapping N/A mapping N/A N/A self mappings year N/A _url_for_fetch N/A N/A self mapping N/A N/A N/A N/A N/A N/A mapping N/A pre_processed_url N/A N/A N/A KeyError N/A N/A N/A mapping N/A raw_url N/A mappings_for_url N/A N/A self url N/A N/A N/A N/A mapping N/A mapping N/A N/A self mappings N/A N/A mapping N/A raw_url url N/A _build_metadata N/A N/A self year elections N/A N/A N/A meta N/A N/A year_int N/A int year N/A election elections N/A N/A statewide_filename N/A N/A self _generate_statewide_filename election N/A N/A N/A meta append N/A generated_filename raw_url pre_processed_url ocd_id name election statewide_filename N/A N/A election N/A direct_links N/A 0 N/A build_raw_github_url N/A self state N/A str year statewide_filename ocd-division/country:us/state:tx Texas N/A election N/A slug N/A county_filename N/A N/A self _generate_county_filename election N/A N/A N/A meta append N/A generated_filename raw_url pre_processed_url ocd_id name election county_filename N/A N/A election N/A direct_links N/A 0 N/A build_raw_github_url N/A self state N/A str year county_filename ocd-division/country:us/state:tx Texas N/A election N/A slug N/A meta N/A _generate_statewide_filename N/A N/A self election N/A N/A N/A bits N/A N/A N/A N/A election N/A start_date replace - N/A self state N/A N/A N/A election N/A special True N/A N/A N/A N/A bits extend N/A special N/A N/A N/A bits extend N/A N/A N/A election N/A race_type split - N/A filename N/A N/A N/A __ join bits .csv N/A filename N/A _generate_county_filename N/A N/A self election N/A N/A N/A bits N/A N/A N/A N/A election N/A start_date replace - N/A self state N/A N/A N/A election N/A special True N/A N/A N/A N/A bits extend N/A special N/A N/A N/A bits extend N/A N/A N/A election N/A race_type split - N/A N/A N/A bits extend N/A county N/A filename N/A N/A N/A __ join bits .csv N/A filename N/A _jurisdictions N/A N/A self N/A N/A N/A Texas counties N/A m N/A N/A self jurisdiction_mappings N/A mappings N/A x N/A x m N/A N/A x N/A county N/A mappings N/A _url_for_fetch N/A N/A self mapping N/A N/A N/A N/A mapping N/A pre_processed_url N/A N/A N/A mapping N/A pre_processed_url N/A N/A N/A mapping N/A raw_url N/A N/A