Module Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str Str AttributeLoad NameLoad attr BinOpMod Str NameLoad ListLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr CompareIsNot SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListComp BinOpMod Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Str Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Str NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareEq NameLoad Str body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str TryExcept body Assign NameStore Call NameLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type NameLoad body Assign NameStore Str If BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr Num Return Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIn NameLoad ListLoad Str Str body Return Dict Str Str NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Return NameLoad Assign NameStore Dict Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Dict Str Str NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str handlers ExceptHandler type NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad Num Call NameLoad NameLoad Num body Expr Yield SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad body Assign NameStore Dict Str Str Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Num Index Num attr Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad orelse Raise Call NameLoad Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str Str Assign NameStore Dict Str ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr CompareIsNot Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str If CompareIn NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Str orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Return NameLoad decorator_list decorator_list
N/A N/A scrapelib urllib urlencode N/A json N/A os N/A us geomancer.helpers encoded_dict geomancer.mancers.base BaseMancer MancerError geomancer.mancers.geotype City State StateFIPS StateCountyFIPS Zip5 Zip9 County SchoolDistrict CongressionalDistrict CensusTract geomancer.app_config CACHE_DIR string punctuation N/A re N/A SUMLEV_LOOKUP N/A city state state_fips state_county_fips zip_5 zip_9 county school_district congress_district census_tract 160,170,060 040 040 050 850,860 850,860 050 950,960,970 500 140 CensusReporter N/A BaseMancer N/A N/A  
    Subclassing the main BaseMancer class
     N/A name Census Reporter N/A machine_name census_reporter N/A base_url http://api.censusreporter.org/1.0 N/A info_url http://censusreporter.org N/A description  
        Demographic data from the 2013 American Community Survey.
     get_metadata N/A N/A self N/A N/A N/A table_ids N/A B01003 B19013 B19301 B02001 B01002 B25077 B26001 B11009 B05006 B19083 B15003 B03002 N/A columns N/A N/A table table_ids N/A N/A info N/A N/A self urlopen N/A %s/table/%s N/A N/A self base_url table N/A table_info N/A N/A json loads info N/A d N/A table_id human_name description source_name source_url geo_types columns table N/A table_info N/A table_title N/A self name N/A http://censusreporter.org/tables/%s/ table N/A N/A City N/A State N/A StateFIPS N/A StateCountyFIPS N/A Zip5 N/A Zip9 N/A County N/A SchoolDistrict N/A CongressionalDistrict N/A CensusTract N/A N/A v N/A column_title N/A v N/A N/A N/A table_info N/A columns values N/A N/A v N/A indent None N/A N/A N/A N/A d N/A columns extend N/A N/A %s (error margin) v N/A v N/A d N/A columns N/A N/A d N/A columns N/A sorted N/A d N/A columns N/A N/A table B25077 N/A N/A N/A d N/A human_name Median Value, Owner-Occupied Housing Units N/A N/A d N/A columns N/A Median Value, Owner-Occupied Housing Units Median Value, Owner-Occupied Housing Units (error margin) N/A N/A d N/A count N/A len N/A d N/A columns N/A N/A N/A columns append d N/A columns N/A lookup_state N/A N/A self term attr N/A name N/A N/A st N/A N/A N/A us states lookup term N/A N/A st N/A N/A st N/A s N/A s N/A us STATES N/A N/A getattr s ap_abbr term N/A st N/A N/A N/A getattr st attr N/A N/A term N/A geo_lookup N/A N/A self search_term geo_type N/A None N/A N/A  
        Search for geoids based upon name of geography

        Returns a response that maps the incoming search term to the geoid:

        {
          'term': <search_term>,
          'geoid': '<full_geoid>',
        }

         N/A N/A geo_type congress_district N/A N/A geoid None N/A N/A dist st N/A N/A search_term rsplit , 1 N/A fips N/A N/A self lookup_state N/A N/A st strip attr fips N/A N/A N/A dist_num N/A str N/A int N/A N/A N/A dist split N/A -1 N/A N/A N/A ValueError N/A N/A dist_num 00 N/A N/A fips dist_num N/A N/A geoid N/A N/A 50000US{0}{1} format fips N/A N/A dist_num zfill 2 N/A N/A term geoid search_term geoid N/A regex N/A N/A re compile N/A [%s] N/A N/A re escape punctuation N/A search_term N/A N/A regex sub search_term N/A N/A geo_type N/A census_tract state_fips N/A N/A N/A term geoid search_term N/A %s00US%s N/A N/A SUMLEV_LOOKUP N/A geo_type search_term N/A N/A geo_type state_county_fips N/A N/A resp N/A term geoid search_term None N/A g N/A StateCountyFIPS N/A N/A valid message N/A N/A g validate N/A search_term N/A valid N/A N/A N/A resp N/A geoid N/A 05000US%s search_term N/A resp N/A q_dict N/A q search_term N/A geo_type N/A N/A N/A q_dict N/A sumlevs N/A SUMLEV_LOOKUP N/A geo_type N/A N/A geo_type zip_5 N/A N/A N/A q_dict N/A q N/A N/A search_term zfill 5 N/A N/A geo_type state N/A N/A N/A q_dict N/A q N/A N/A self lookup_state search_term N/A q_dict N/A encoded_dict q_dict N/A params N/A urlencode q_dict N/A N/A N/A response N/A N/A self urlopen N/A %s/geo/search?%s N/A N/A self base_url params N/A N/A N/A N/A scrapelib HTTPError N/A e N/A N/A N/A N/A body N/A N/A json loads N/A N/A N/A N/A e body json N/A error N/A N/A N/A ValueError N/A N/A body None N/A N/A MancerError N/A Census Reporter API returned a %s status N/A response status_code body body N/A results N/A N/A json loads response N/A N/A N/A results N/A term geoid search_term N/A N/A N/A results N/A results N/A 0 N/A full_geoid N/A N/A N/A IndexError N/A N/A results N/A term geoid search_term None N/A results N/A _chunk_geoids N/A N/A self geo_ids N/A N/A N/A i N/A xrange 0 N/A len geo_ids 100 N/A N/A N/A N/A geo_ids N/A i N/A i 100 N/A _try_search N/A N/A self gids columns bad_gids N/A N/A N/A N/A query N/A table_ids geo_ids N/A N/A , join columns N/A N/A , join N/A sorted N/A N/A g N/A 1 N/A g gids N/A params N/A urlencode query N/A N/A N/A response N/A N/A self urlopen N/A %s/data/show/latest?%s N/A N/A self base_url params N/A N/A N/A N/A scrapelib HTTPError N/A e N/A N/A N/A N/A body N/A N/A json loads N/A N/A N/A N/A e body json N/A error N/A N/A N/A ValueError N/A N/A body None N/A N/A AttributeError N/A N/A body N/A e body N/A N/A The ACS 2013 5-year release doesn't include GeoID(s) body N/A N/A error N/A N/A json loads body N/A N/A N/A bad_gids append N/A N/A N/A N/A N/A N/A error N/A error rsplit 1 N/A 1 replace . N/A N/A idx gid N/A enumerate gids N/A N/A N/A N/A gid N/A 1 bad_gids N/A N/A N/A N/A gids pop idx N/A response N/A N/A self _try_search gids columns bad_gids bad_gids N/A N/A N/A MancerError Census Reporter API returned an error body body N/A response N/A search N/A N/A self geo_ids columns N/A None None N/A N/A  
        Response should look like:
        {
            'header': [
                'Sex by Educational Attainment for the Population 25 Years and Over, 5th and 6th grade',
                'Sex by Educational Attainment for the Population 25 Years and Over, 7th and 8th grade'
                '...etc...'
            ],
            '04000US55': [
                1427.0,
                723.0,
                3246.0,
                760.0,
                ...etc...,
            ],
            '04000US56': [
                1567.0,
                743.0,
                4453.0,
                657.0,
                ...etc...,
            ]
        }

        The keys are CensusReporter 'geo_ids' and the value is a list that you
        should be able to call the python 'zip' function on with the 'header' key.
         N/A table_name_exceptions N/A Median Household Income in the Past 12 Months (In 2013 Inflation-adjusted Dollars) Per Capita Income in the Past 12 Months (In 2013 Inflation-adjusted Dollars) N/A results N/A header N/A N/A gids N/A N/A self _chunk_geoids geo_ids N/A N/A raw_results N/A N/A self _try_search gids columns N/A raw_results N/A N/A json loads raw_results N/A N/A geo_type geo_id gids N/A N/A N/A N/A N/A results get geo_id N/A N/A N/A results N/A geo_id N/A N/A table_id columns N/A N/A table_info N/A N/A raw_results N/A tables N/A table_id N/A title N/A table_info N/A title N/A detail_ids N/A k N/A k N/A N/A N/A table_info N/A columns keys N/A N/A N/A N/A N/A table_info N/A columns N/A k get indent None N/A denominator N/A table_info N/A denominator_column_id N/A detail_id detail_ids N/A N/A table_title N/A table_info N/A title N/A column_title None N/A detail_title N/A N/A N/A table_info N/A columns N/A detail_id N/A name N/A N/A table_title table_name_exceptions N/A N/A column_title detail_title N/A N/A N/A table_id B25077 N/A N/A column_title Median Value, Owner-Occupied Housing Units N/A N/A column_title N/A %s, %s N/A table_title detail_title N/A N/A column_title N/A results N/A header N/A N/A N/A N/A N/A results N/A header extend N/A column_title N/A %s (error margin) column_title N/A detail_info N/A N/A N/A raw_results N/A data N/A geo_id N/A table_id N/A N/A N/A N/A results N/A geo_id extend N/A N/A N/A detail_info N/A estimate N/A detail_id N/A N/A detail_info N/A error N/A detail_id N/A results N/A N/A