Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore IfExp NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return TupleLoad Call NameLoad NameLoad Str NameLoad Call NameLoad NameLoad Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Continue orelse Raise AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call NameLoad keyword NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A geopy N/A time N/A logging django.db transaction schools.models County District School api.cde MODE_PUBLIC MODE_PRIVATE CdeSchoolSearchList CdeSchoolDetail serializers CountySerializer DistrictSerializer SchoolSerializer N/A DEFAULT_GEOCODER_TIMEOUT 10 N/A DEFAULT_GEOCODER_RETRIES 3 N/A DEFAULT_GEOCODER_INTERVAL_BETWEEN_RETRIES 5 N/A logger N/A N/A logging getLogger __name__ DBLoader N/A object N/A N/A geocoder N/A N/A N/A geopy geocoders GoogleV3 timeout DEFAULT_GEOCODER_TIMEOUT geocode N/A N/A self address N/A N/A N/A itr N/A xrange DEFAULT_GEOCODER_RETRIES N/A N/A N/A N/A loc N/A address N/A N/A N/A self geocoder geocode address None N/A N/A N/A getattr loc latitude None N/A getattr loc longitude None N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger warning N/A N/A Error while geocoding address: {0}. Retrying in {1} seconds... format address DEFAULT_GEOCODER_INTERVAL_BETWEEN_RETRIES N/A N/A N/A time sleep DEFAULT_GEOCODER_INTERVAL_BETWEEN_RETRIES N/A N/A N/A N/A N/A geopy exc GeocoderServiceError N/A add_or_update_geo_coords_for_school N/A N/A self school N/A N/A N/A N/A school updated N/A N/A N/A N/A logger info N/A N/A Geocoding school: <Name: {0}, Code: {1}> format N/A school name N/A school code N/A N/A N/A school lat N/A school lng N/A N/A self geocode N/A school address N/A N/A N/A school save N/A serialize_to_objects N/A N/A self info N/A N/A N/A county_serializer N/A CountySerializer data info N/A N/A N/A county_serializer is_valid raise_exception True N/A N/A county _ N/A N/A N/A County objects get_or_create N/A county_serializer validated_data N/A district_serializer N/A DistrictSerializer data info N/A N/A N/A district_serializer is_valid raise_exception True N/A N/A district _ N/A N/A N/A District objects get_or_create county county N/A district_serializer validated_data N/A school_serializer N/A SchoolSerializer data info N/A N/A N/A school_serializer is_valid raise_exception True N/A N/A school _ N/A N/A N/A School objects update_or_create defaults N/A school_serializer validated_data code N/A N/A school_serializer validated_data N/A code county county district district N/A N/A N/A self add_or_update_geo_coords_for_school school N/A source N/A N/A self N/A N/A N/A N/A N/A N/A School objects update deprecated True N/A mode N/A MODE_PUBLIC MODE_PRIVATE N/A N/A N/A N/A logger info Fetching a list of schools to parse... N/A school_endpoints N/A N/A CdeSchoolSearchList mode mode schools N/A N/A N/A logger info N/A N/A {0} schools found. Commencing parsing of school details... format N/A len school_endpoints N/A endpoint school_endpoints N/A N/A info N/A N/A N/A CdeSchoolDetail endpoint to_dict N/A N/A info N/A public N/A mode MODE_PUBLIC N/A N/A N/A self serialize_to_objects info N/A update_db N/A N/A self N/A N/A N/A N/A N/A N/A N/A logger info Updating database... N/A N/A N/A transaction atomic N/A N/A N/A N/A self source N/A N/A N/A logger info Database update successfully completed. N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger exception e N/A N/A