{"id":26593874,"url":"https://github.com/parker84/northdash","last_synced_at":"2026-05-05T03:31:07.363Z","repository":{"id":43556810,"uuid":"458602611","full_name":"parker84/northdash","owner":"parker84","description":"Status dashboard for Canada, a single place to quick understanding of how Canada is faring, based on the data.","archived":false,"fork":false,"pushed_at":"2022-02-26T18:47:48.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T04:50:21.192Z","etag":null,"topics":["canada","data-science","python","streamlit"],"latest_commit_sha":null,"homepage":"https://northdash.herokuapp.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parker84.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-12T18:14:12.000Z","updated_at":"2023-01-15T16:03:10.000Z","dependencies_parsed_at":"2022-08-23T09:00:34.797Z","dependency_job_id":null,"html_url":"https://github.com/parker84/northdash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parker84%2Fnorthdash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parker84%2Fnorthdash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parker84%2Fnorthdash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parker84%2Fnorthdash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parker84","download_url":"https://codeload.github.com/parker84/northdash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245123016,"owners_count":20564426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canada","data-science","python","streamlit"],"created_at":"2025-03-23T15:32:06.375Z","updated_at":"2026-05-05T03:31:02.332Z","avatar_url":"https://github.com/parker84.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"north-dash\n==============================\n\nStatus dashboard for Canada, a single place to quick understanding of how Canada is faring, based on the data.\n\n### Table of Contents\n- [Getting Started](#getting-started)\n- [Project Organization](#project-organization)\n\n## Getting Started\n\n### Setup environment:\n```sh\n# for mac\nvirtualenv ./venv -p python3.9\nsource ./venv/bin/activate\npip install -r ./requirements\n```\n\n### Downloading the data\n\nStatsCan:\n1. [Physical flow account for greenhouse gas emissions, annual](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=3810009701)\n2. [Low income statistics by age, sex and economic family type, annual](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1110013501)\n3. [Gross domestic product (GDP) at basic prices, by industry, provinces and territories, annual (x 1,000,000)](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=3610040201)\n4. [Consumer Price Index, monthly, not seasonally adjusted](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401)\n5. [Labour force characteristics by province, monthly, seasonally adjusted](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1410028703)\n6. [Gross domestic product (GDP) at basic prices, by industry, monthly (x 1,000,000)](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=3610043401)\n7. [Employment and average weekly earnings (including overtime) for all employees by province and territory, monthly, seasonally adjusted](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1410022301\u0026pickMembers%5B0%5D=2.2\u0026pickMembers%5B1%5D=3.1\u0026cubeTimeFrame.startMonth=07\u0026cubeTimeFrame.startYear=2021\u0026cubeTimeFrame.endMonth=11\u0026cubeTimeFrame.endYear=2021\u0026referencePeriods=20210701%2C20211101)\n\n### Db Setup\nCreate a .env file\n```\nDB_HOST = \"\"\nDB = \"\"\nDB_USER = \"\"\nDB_PWD = \"\n```\n\n### Preparing the Data\n```sh\nexport PYTHONPATH=\"/Users/brydonparker/Documents/projects/side_projects/north-dash\" # change to top of this repo \npython ./src/data/load_csvs_into_db.py\n```\n\n### Running the pipeline\nRun the sql scripts in the `./src/data/sql_pipeline` folder in order.\n\n### Testing\n```sh\npytest ./src/data/sql_pipeline/\n```\n\n### Launch the dashboard locally:\n```sh\nexport PYTHONPATH=\"/Users/brydonparker/Documents/projects/side_projects/north-dash\" # change to top of this repo on your mac\nstrealit run ./src/visualization/dash.py\n```\n\n## Project Organization\n\n    ├── LICENSE\n    ├── Makefile           \u003c- Makefile with commands like `make data` or `make train`\n    ├── README.md          \u003c- The top-level README for developers using this project.\n    ├── data\n    │   ├── external       \u003c- Data from third party sources.\n    │   ├── interim        \u003c- Intermediate data that has been transformed.\n    │   ├── processed      \u003c- The final, canonical data sets for modeling.\n    │   └── raw            \u003c- The original, immutable data dump.\n    │\n    ├── docs               \u003c- A default Sphinx project; see sphinx-doc.org for details\n    │\n    ├── models             \u003c- Trained and serialized models, model predictions, or model summaries\n    │\n    ├── notebooks          \u003c- Jupyter notebooks. Naming convention is a number (for ordering),\n    │                         the creator's initials, and a short `-` delimited description, e.g.\n    │                         `1.0-jqp-initial-data-exploration`.\n    │\n    ├── references         \u003c- Data dictionaries, manuals, and all other explanatory materials.\n    │\n    ├── reports            \u003c- Generated analysis as HTML, PDF, LaTeX, etc.\n    │   └── figures        \u003c- Generated graphics and figures to be used in reporting\n    │\n    ├── requirements.txt   \u003c- The requirements file for reproducing the analysis environment, e.g.\n    │                         generated with `pip freeze \u003e requirements.txt`\n    │\n    ├── setup.py           \u003c- makes project pip installable (pip install -e .) so src can be imported\n    ├── src                \u003c- Source code for use in this project.\n    │   ├── __init__.py    \u003c- Makes src a Python module\n    │   │\n    │   ├── data           \u003c- Scripts to download or generate data\n    │   │   └── make_dataset.py\n    │   │\n    │   ├── features       \u003c- Scripts to turn raw data into features for modeling\n    │   │   └── build_features.py\n    │   │\n    │   ├── models         \u003c- Scripts to train models and then use trained models to make\n    │   │   │                 predictions\n    │   │   ├── predict_model.py\n    │   │   └── train_model.py\n    │   │\n    │   └── visualization  \u003c- Scripts to create exploratory and results oriented visualizations\n    │       └── visualize.py\n    │\n    └── tox.ini            \u003c- tox file with settings for running tox; see tox.readthedocs.io\n\n\n--------\n\n\u003cp\u003e\u003csmall\u003eProject based on the \u003ca target=\"_blank\" href=\"https://drivendata.github.io/cookiecutter-data-science/\"\u003ecookiecutter data science project template\u003c/a\u003e. #cookiecutterdatascience\u003c/small\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparker84%2Fnorthdash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparker84%2Fnorthdash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparker84%2Fnorthdash/lists"}