API documentation for StatsCan can be found on the web data service docs
If you're looking for Table/Vector IDs to use in the app you can find them through the StatCan data page
This library implements most of the functions defined by the Statistics Canada Web Data Service. It also has a number of helper functions that make it easy to read Statistics Canada tables or vectors into pandas dataframes.
The package can either be installed with pip or conda:
conda install -c conda-forge stats_canOr:
pip install stats-canThe code is also available on
Contributions to this project are welcome. Fork the repository from github.
You'll need a python environment with poetry installed. A good guide for setting up an environment and project (that I used for this library) is hypermodern python.
I've configured the project to use nix for environment creation. If you use nix then the makefile in the root of the project will let you create development environments and run tests. However you like to configure a uv project should work though.
I'd also welcome contributions to the docs, or anything else that would make this tool better for you or others.