compass.scripts.process#

Ordinance full processing logic

Functions

process_counties_with_openai(out_dir, tech, ...)

Download and extract ordinances for a list of counties

Classes

AzureParams(azure_api_key, azure_version, ...)

Create new instance of AzureParams(azure_api_key, azure_version, azure_endpoint)

Directories(out, logs, clean_files, ...)

Create new instance of Directories(out, logs, clean_files, ordinance_files, jurisdiction_dbs)

ProcessKwargs(file_loader_kwargs, td_kwargs, ...)

Create new instance of ProcessKwargs(file_loader_kwargs, td_kwargs, tpe_kwargs, ppe_kwargs, max_num_concurrent_jurisdictions)

TechSpec(questions, heuristic, ...)

Create new instance of TechSpec(questions, heuristic, ordinance_text_collector, ordinance_text_extractor, permitted_use_text_collector, permitted_use_text_extractor, structured_ordinance_parser, structured_permitted_use_parser)

WebSearchParams(...)

Create new instance of WebSearchParams(num_urls_to_check_per_jurisdiction, max_num_concurrent_browsers, url_ignore_substrings, pytesseract_exe_fp)