Auto Generated Documentation

create_and_clean.get_col(db_name='udacity', collection='rochester_osm')[source]

create and return a mongodb db/collection connection object

create_and_clean.get_dict_data(result_set_item)[source]

generate dictionaries from the resultsets

create_and_clean.get_soup(file, tags)[source]

generate some resultsets for the tags from the xml

create_and_clean.get_suffix_mapping()[source]

get a mapping for street suffixes by scraping table from USPS

create_and_clean.json_to_mongo(col: pymongo.collection.Collection, json_file: str = 'rochester_osm.json')[source]

create new mongodb collection from json file

create_and_clean.main()[source]

currently set to use sample extract, for full implementation see jupyter notebook version of this file

create_and_clean.read_osm_file(filename: str)[source]

reads in osm file to be processed

create_and_clean.tqdm_ipython_test()[source]

testing tdqm works in jupyter lab