Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMHC Data Portal

This project ports and extends Jens von Bergmann's cmhc R package (mountainMath, Vancouver). That work reverse-engineered the Canada Mortgage and Housing Corporation's HMIP ExportTable endpoint and compiled the table catalogue this project depends on. Without it, none of this would exist. The catalogue at src/cmhc/catalogue.py is a direct port.

Continued mapping

CMHC changes filter shapes and table identifiers without notice, and the R package's vignettes exercise only a narrow slice of the catalogue — so stale entries can sit unnoticed for years upstream. This project adds a discovery toolchain (scripts/probe_table.py) and a dated log of finds (docs/DATA_DISCOVERY.md) to surface and repair them. Coverage and recent finds are summarized in docs/PROGRESS.md.

Data mart

data/marts/cmhc_rental.duckdb is a single-file DuckDB extract of Ontario rental data (Rental Market Survey + Secondary Rental Market Survey), down to census-tract level. ~38 MB. Star schema plus materialized metric tables for the common cross-sections; reliability codes, suppression markers, and CMHC table provenance carried through to every row.

Schema, column conventions, and example queries: docs/DATAMART.md.

Documentation

Attribution

Source: Canada Mortgage and Housing Corporation (CMHC), Housing Market Information Portal (HMIP), various reference dates. This information is reproduced and distributed on an "as is" basis with the permission of CMHC.

About

A LLM assisted port of Mountain Math's CMHC R package into Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages