Python api for Statistics Canada New Data Model (NDM)
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
Introduction
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.
Installation
The package can either be installed with pip or conda:
conda install -c conda-forge stats_can
Or:
pip install stats-can
The code is also available on
Contributing
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.
Metadata
Release files for stats-can 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stats_can-3.3.0.tar.gz | 24.4 kB | Without provenance | Details for stats_can-3.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stats_can-3.3.0-py3-none-any.whl | Python 3 | none | any | Details for stats_can-3.3.0-py3-none-any.whl |
Total release size: 50.2 kB
Release files / stats_can-3.3.0.tar.gz
| Download URL | stats_can-3.3.0.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3304ebe2053418d9d58b0509def650f5ede133489318c76004b7604e9ab6f07
|
|
BLAKE2b-256 checksum How to use checksums |
6f6b55603e9fee63d79e77239ec235db426913d5901a9b17dd1a463061e7ad77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / stats_can-3.3.0-py3-none-any.whl
| Download URL | stats_can-3.3.0-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53b2d3a6fd0382e083a086cd24a71409f8b52fa4d447f0839f7d1b32c1bec03e
|
|
BLAKE2b-256 checksum How to use checksums |
926a9705a6afacbe0a4391316221ab4b09929938cb73bbaf6113ca273fdc96ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for stats-can 3.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.