The census_info Module
census_info.py
Core module for handling census metadata
- get_endpoint(year: int, dataset: str, sum_file: Optional[str] = None)[source]
Returns a string containing the URL to the census API endpoint
- set_api_key(key: str)[source]
Sets an environment variable to contain your census API key. To avoid needing to run this every session you can also permanently set CENSUS_API_KEY to your key in your environment.
- Parameters:
key¶ – Your Census API key as a string
- Returns:
nothing