SocialMapper v1.0.0
The first stable release of SocialMapper - a Python library for community accessibility analysis and demographic mapping.
Core Features
5 Simple API Functions:
create_isochrone()- Generate travel-time polygons (drive, walk, bike)get_census_blocks()- Fetch census block groups for any areaget_census_data()- Retrieve demographic data from US Censuscreate_map()- Generate choropleth map visualizationsget_poi()- Find points of interest near locations
Highlights
- Simple API - Just 5 functions for all your spatial analysis needs
- Built-in Caching - Automatic caching for geocoding and network data
- Web UI - Streamlit-based interactive exploration
- Helpful Errors - Context-aware exceptions with troubleshooting guidance
- Well Tested - 165 tests covering core functionality
Installation
pip install socialmapperQuick Start
from socialmapper import create_isochrone, get_census_data
# Create a 15-minute driving isochrone
iso = create_isochrone("Portland, OR", travel_time=15)
# Get population data for the area
data = get_census_data(iso, variables=["population"])Requirements
- Python 3.11+
- Census API key (free from https://api.census.gov/data/key_signup.html)
Documentation
See the README for full documentation.