Module Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad NameLoad NameStore body With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Dict Str Str Str Str Str Str Str Lambda arguments args NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Lambda arguments args NameParam defaults CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Lambda arguments args NameParam defaults CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body For TupleStore NameStore NameStore NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Lambda arguments args NameParam defaults BoolOpAnd Call NameLoad NameLoad Call NameLoad NameLoad decorator_list For TupleStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad BinOpAdd Str NameLoad attr Str Assign NameStore Call AttributeLoad BinOpAdd Str NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad keyword NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Dict Str Str Str BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Call AttributeLoad Str attr NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore IfExp Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign TupleStore NameStore NameStore TupleLoad Num Call NameLoad Lambda arguments args defaults Num With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr DictComp NameLoad NameLoad comprehension NameStore NameLoad For NameStore NameLoad body TryExcept body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Continue If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad BinOpMult Call NameLoad BinOpDiv NameLoad NameLoad NameLoad BinOpMult Call NameLoad BinOpDiv NameLoad NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareIn NameLoad TupleLoad Num Num Num Num Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore TupleLoad Str Str Str Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr DictComp NameLoad NameLoad comprehension NameStore NameLoad For TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore TupleLoad NameLoad NameLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad Call NameLoad Call NameLoad NameLoad Str Str NameStore body Assign NameStore Call NameLoad keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call NameLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse If CompareGtE NameLoad ListLoad Num Num body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareEq NameLoad Str body With Call NameLoad AttributeLoad NameLoad attr NameStore body Expr Call NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Continue orelse If CompareEq SubscriptLoad Call NameLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore TupleLoad Str Str body If CompareEq AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore TupleLoad Str Str body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad
N/A N/A logging N/A _L N/A N/A logging getLogger openaddr.ci.collect compat standard_library argparse ArgumentParser collections defaultdict os environ stat close remove zipfile ZipFile ZIP_DEFLATED os.path splitext exists basename join dirname urllib.parse urlparse operator attrgetter csv DictReader DictWriter tempfile mkstemp mkdtemp itertools product io TextIOWrapper datetime date shutil rmtree math floor objects read_latest_set read_completed_runs_to_date N/A db_connect db_cursor setup_logger render_index_maps log_function_errors N/A S3 iterate_local_processed_files util expand conform OPENADDR_CSV_SCHEMA compat PY2 N/A parser N/A ArgumentParser description Run some source files. N/A N/A N/A parser add_argument -o --owner default openaddresses help Github repository owner. Defaults to "openaddresses". N/A N/A N/A parser add_argument -r --repository default openaddresses help Github repository name. Defaults to "openaddresses". N/A N/A N/A parser add_argument -b --bucket default data.openaddresses.io help S3 bucket name. Defaults to "data.openaddresses.io". N/A N/A N/A parser add_argument -d --database-url default N/A N/A environ get DATABASE_URL None help Optional connection string for database. Defaults to value of DATABASE_URL environment variable. N/A N/A N/A parser add_argument -a --access-key default N/A N/A environ get AWS_ACCESS_KEY_ID None help Optional AWS access key name. Defaults to value of AWS_ACCESS_KEY_ID environment variable. N/A N/A N/A parser add_argument -s --secret-key default N/A N/A environ get AWS_SECRET_ACCESS_KEY None help Optional AWS secret key name. Defaults to value of AWS_SECRET_ACCESS_KEY environment variable. N/A N/A N/A parser add_argument --sns-arn default N/A N/A environ get AWS_SNS_ARN None help Optional AWS Simple Notification Service (SNS) resource. Defaults to value of AWS_SNS_ARN environment variable. N/A N/A N/A parser add_argument -v --verbose help Turn on verbose logging action store_const dest loglevel const N/A logging DEBUG default N/A logging INFO N/A N/A N/A parser add_argument -q --quiet help Turn off most logging action store_const dest loglevel const N/A logging WARNING default N/A logging INFO main N/A N/A N/A N/A N/A  Single threaded worker to serve the job queue.
     N/A args N/A N/A parser parse_args N/A N/A setup_logger N/A args sns_arn log_level N/A args loglevel N/A s3 N/A S3 N/A args access_key N/A args secret_key N/A args bucket N/A db_args N/A N/A util prepare_db_kwargs N/A args database_url N/A N/A db_connect db_args conn N/A N/A N/A db_cursor conn db N/A N/A set N/A read_latest_set db N/A args owner N/A args repository N/A runs N/A read_completed_runs_to_date db N/A set id N/A N/A render_index_maps s3 runs N/A dir N/A mkdtemp prefix collected- N/A area_tests N/A global us_northeast us_midwest us_south us_west europe asia N/A N/A N/A result N/A True is_us_northeast is_us_midwest is_us_south is_us_west is_europe is_asia N/A sa_tests N/A sa N/A N/A N/A result N/A N/A N/A N/A N/A result run_state get share-alike true N/A N/A N/A result N/A N/A N/A N/A N/A result run_state get share-alike true N/A collections N/A prepare_collections s3 set dir area_tests sa_tests N/A result N/A iterate_local_processed_files runs N/A N/A N/A collection test collections N/A N/A N/A test result N/A N/A N/A N/A collection collect result N/A N/A db_connect db_args conn N/A N/A N/A db_cursor conn db N/A N/A N/A N/A db execute UPDATE zips SET is_current = false N/A N/A collection test collections N/A N/A N/A N/A collection publish db N/A N/A rmtree dir N/A log_function_errors prepare_collections N/A N/A s3 set dir area_tests sa_tests N/A N/A N/A N/A collections N/A N/A pairs N/A product N/A N/A area_tests items N/A N/A sa_tests items _and N/A N/A test1 test2 N/A N/A N/A N/A N/A N/A result N/A N/A N/A test1 result N/A test2 result N/A N/A N/A N/A area_id area_test N/A attr_id sa_test pairs N/A N/A area_suffix N/A N/A N/A - area_id rstrip - N/A attr_suffix N/A N/A N/A - attr_id rstrip - N/A new_name N/A N/A openaddr-collected{}{}.zip format area_suffix attr_suffix N/A new_zip N/A _prepare_zip set N/A join dir new_name N/A new_collection N/A CollectorPublisher s3 new_zip area_id attr_id N/A N/A N/A collections append N/A new_collection N/A _and area_test sa_test N/A collections N/A _prepare_zip N/A N/A set filename N/A N/A N/A N/A zipfile N/A ZipFile filename w ZIP_DEFLATED allowZip64 True N/A sources_tpl https://github.com/{owner}/{repository}/tree/{commit_sha}/sources N/A sources_url N/A N/A sources_tpl format N/A set __dict__ N/A N/A N/A zipfile writestr README.txt N/A N/A Data collected around {date} by OpenAddresses (http://openaddresses.io).

Address data is essential infrastructure. Street names, house numbers and
postal codes, when combined with geographic coordinates, are the hub that
connects digital to physical places.

Data licenses can be found in LICENSE.txt.

Data source information can be found at
{url}
 format url sources_url date N/A N/A date today N/A zipfile N/A CollectorPublisher N/A N/A N/A __init__ N/A N/A self s3 collection_zip collection_id license_attr N/A N/A N/A N/A self s3 s3 N/A N/A self zip collection_zip N/A N/A self sources N/A dict N/A N/A self collection_id collection_id N/A N/A self license_attr license_attr N/A collect N/A N/A self result N/A N/A N/A  Add LocalProcessedResult instance to collection zip.
         N/A N/A N/A _L info N/A N/A Adding {} to {} format N/A result source_base N/A N/A self zip filename N/A N/A add_source_to_zipfile N/A self zip result N/A attribution No N/A N/A N/A N/A N/A result run_state get attribution flag false N/A N/A attribution N/A N/A N/A result run_state get attribution name N/A N/A N/A self sources N/A N/A result source_base N/A website license attribution N/A N/A N/A N/A result run_state get website Unknown N/A N/A N/A N/A result run_state get license Unknown attribution N/A publish N/A N/A self db N/A N/A N/A  Create new S3 object with zipfile name and upload the collection.
         N/A template {source}
Website: {website}
License: {license}
Required attribution: {attribution}
 N/A license_lines N/A Data collected by OpenAddresses (http://openaddresses.io).
 N/A N/A source data N/A sorted N/A N/A N/A self sources items N/A N/A line N/A N/A template format source source data N/A N/A N/A license_lines append line N/A N/A N/A N/A self zip writestr LICENSE.txt N/A N/A N/A N/A join license_lines encode utf8 N/A N/A N/A N/A self zip close N/A N/A N/A _L info N/A N/A Finished {} format N/A N/A self zip filename N/A zip_key N/A N/A N/A self s3 new_key N/A basename N/A N/A self zip filename N/A zip_args N/A dict policy public-read headers N/A Content-Type application/zip N/A N/A N/A zip_key set_contents_from_filename N/A N/A self zip filename zip_args N/A N/A N/A _L info N/A N/A Uploaded {} to {} format N/A N/A self zip filename N/A zip_key name N/A zip_url N/A N/A zip_key generate_url expires_in 0 query_auth False force_http True N/A length N/A N/A exists N/A N/A self zip filename N/A N/A stat N/A N/A self zip filename st_size None N/A N/A N/A db execute DELETE FROM zips WHERE url = %s N/A zip_url N/A N/A N/A db execute INSERT INTO zips
                      (url, datetime, is_current, content_length, collection, license_attr)
                      VALUES (%s, NOW(), true, %s, %s, %s) N/A zip_url length N/A self collection_id N/A self license_attr N/A N/A expand_and_add_csv_to_zipfile N/A N/A zip_out arc_filename file do_expand N/A N/A N/A  Write csv to zipfile, with optional expand.expand_street_name().
    
        File is assumed to be open in binary mode.
     N/A N/A handle tmp_filename N/A mkstemp suffix .csv N/A N/A close handle N/A N/A PY2 N/A N/A file N/A TextIOWrapper file utf8 N/A N/A size squares N/A 0.1 N/A defaultdict N/A N/A N/A N/A 0 N/A N/A open tmp_filename w output N/A N/A in_csv N/A DictReader file N/A out_csv N/A DictWriter output OPENADDR_CSV_SCHEMA dialect excel N/A N/A N/A out_csv writerow N/A col col N/A col OPENADDR_CSV_SCHEMA N/A row in_csv N/A N/A N/A N/A N/A lat lon N/A N/A float N/A row N/A LAT N/A float N/A row N/A LON N/A N/A N/A ValueError N/A N/A N/A do_expand N/A N/A N/A row N/A STREET N/A N/A expand expand_street_name N/A row N/A STREET N/A N/A N/A out_csv writerow row N/A key N/A N/A N/A floor N/A lat size size N/A N/A floor N/A lon size size N/A N/A squares N/A key 1 N/A N/A N/A zip_out write tmp_filename arc_filename N/A N/A remove tmp_filename N/A N/A _add_spatial_summary_to_zipfile zip_out arc_filename size squares N/A _add_spatial_summary_to_zipfile N/A N/A zip_out arc_filename size squares N/A N/A N/A N/A N/A size N/A 0.1 0.2 0.5 1.0 N/A F {:.1f} N/A N/A handle tmp_filename N/A mkstemp suffix .csv N/A N/A close handle N/A N/A open tmp_filename w output N/A N/A columns N/A count lon lat area N/A out_csv N/A DictWriter output columns dialect excel N/A N/A N/A out_csv writerow N/A col col N/A col columns N/A N/A N/A lat lon count N/A N/A squares items N/A N/A args N/A N/A N/A F format n N/A n N/A lon lat N/A lon size N/A lat size N/A area N/A N/A POLYGON(({0} {1},{0} {3},{2} {3},{2} {1},{0} {1})) format args N/A N/A N/A out_csv writerow N/A dict count count lon N/A N/A F format lon lat N/A N/A F format lat area area N/A N/A prefix _ N/A splitext arc_filename N/A support_csvname N/A join summary N/A prefix -summary.csv N/A support_vrtname N/A join summary N/A prefix -summary.vrt N/A N/A N/A zip_out write tmp_filename support_csvname N/A N/A open N/A join N/A dirname __file__ templates source-summary.vrt file N/A N/A args N/A dict filename N/A basename support_csvname N/A N/A N/A args update name N/A N/A splitext N/A args N/A filename N/A 0 N/A vrt_content N/A N/A N/A N/A file read format args N/A N/A N/A zip_out writestr support_vrtname vrt_content N/A N/A remove tmp_filename N/A add_source_to_zipfile N/A N/A zip_out result N/A N/A N/A  Add a LocalProcessedResult to zipfile via expand_and_add_csv_to_zipfile().
    
        Use result code_version to determine whether to expand; 3+ will do it.
     N/A N/A _ ext N/A splitext N/A result filename N/A N/A N/A number N/A N/A int n N/A n N/A N/A N/A result code_version split . N/A N/A N/A Exception N/A e N/A N/A N/A N/A _L info N/A N/A Skipping street name expansion for {} (error {}) format N/A result source_base e N/A do_expand False N/A N/A N/A number N/A 2 13 N/A N/A do_expand True N/A N/A N/A N/A _L info N/A N/A Skipping street name expansion for {} (version {}) format N/A result source_base N/A result code_version N/A do_expand False N/A do_expand N/A N/A is_us N/A N/A is_us_northeast result N/A is_us_midwest result N/A is_us_south result N/A is_us_west result N/A N/A is_us N/A N/A N/A N/A _L info N/A N/A Skipping street name expansion for {} (not U.S.) format N/A result source_base N/A do_expand False N/A N/A ext .csv N/A N/A N/A open N/A result filename file N/A N/A N/A expand_and_add_csv_to_zipfile zip_out N/A N/A result source_base ext file do_expand N/A N/A N/A ext .zip N/A N/A zip_in N/A ZipFile N/A result filename r N/A zipinfo N/A N/A zip_in infolist N/A N/A N/A N/A zipinfo filename README.txt N/A N/A N/A N/A N/A N/A N/A splitext N/A zipinfo filename N/A 1 .csv N/A N/A zipped_file N/A N/A zip_in open N/A zipinfo filename N/A N/A expand_and_add_csv_to_zipfile zip_out N/A zipinfo filename zipped_file do_expand N/A N/A N/A N/A zip_out writestr zipinfo N/A N/A zip_in read N/A zipinfo filename N/A N/A N/A zip_in close N/A _is_us_state N/A N/A abbr result N/A N/A N/A sep N/A / - N/A N/A N/A N/A result source_base N/A N/A us{sep}{abbr} format N/A locals N/A N/A True N/A N/A N/A N/A result source_base startswith N/A N/A us{sep}{abbr}. format N/A locals N/A N/A True N/A N/A N/A N/A result source_base startswith N/A N/A us{sep}{abbr}{sep} format N/A locals N/A N/A True N/A False N/A is_us_northeast N/A N/A result N/A N/A N/A abbr N/A ct me ma nh ri vt nj ny pa N/A N/A N/A _is_us_state abbr result N/A N/A True N/A False N/A is_us_midwest N/A N/A result N/A N/A N/A abbr N/A il in mi oh wi ia ks mn mo ne nd sd N/A N/A N/A _is_us_state abbr result N/A N/A True N/A False N/A is_us_south N/A N/A result N/A N/A N/A abbr N/A de fl ga md nc sc va dc wv al ky ms ar la ok tx tn N/A N/A N/A _is_us_state abbr result N/A N/A True N/A False N/A is_us_west N/A N/A result N/A N/A N/A abbr N/A az co id mt nv nm ut wy ak ca hi or wa N/A N/A N/A _is_us_state abbr result N/A N/A True N/A False N/A _is_country N/A N/A iso result N/A N/A N/A sep N/A / - N/A N/A N/A N/A result source_base iso N/A N/A True N/A N/A N/A N/A result source_base startswith N/A N/A {iso}. format N/A locals N/A N/A True N/A N/A N/A N/A result source_base startswith N/A N/A {iso}{sep} format N/A locals N/A N/A True N/A False N/A is_europe N/A N/A result N/A N/A N/A iso N/A be bg cz dk de ee ie el es fr hr it cy lv lt lu hu mt nl at pl pt ro si sk fi se uk gr gb N/A N/A N/A _is_country iso result N/A N/A True N/A False N/A is_asia N/A N/A result N/A N/A N/A iso N/A af am az bh bd bt bn kh cn cx cc io ge hk in id ir iq il jp jo kz kp kr kw kg la lb mo my mv mn mm np om pk ph qa sa sg lk sy tw tj th tr tm ae uz vn ye ps as au nz ck fj pf gu ki mp mh fm um nr nc nz nu nf pw pg mp sb tk to tv vu um wf ws is N/A N/A N/A _is_country iso result N/A N/A True N/A False N/A N/A N/A __name__ __main__ N/A N/A N/A exit N/A main