# Canada Weather Data Package
**can_weather_data** is a Python library that allows you to retrieve weather data from climate.weather.gc.ca. This package provides functions to extract historical weather data for a given location and time period. It uses the **env_canada** library to access historical weather data from Environment and Climate Change Canada.
### Installation
pip install can_weather_data
### Usage
```python
from can_weather_data.weatherdata import data_extract
cord_list = ['48.508333', '-68.467667']
# Set the start and end dates for the weather data retrieval.
start_date = datetime.strptime('Jan2015', '%b%Y')
end_date = datetime.strptime('Dec2020', '%b%Y')
data_extract(cord_list, start_date, end_date)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/DulminiGuruge/can_weather_data",
"name": "can-weather-data",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "weather package climate data",
"author": "Dulmini Guruge",
"author_email": "dulminiguruge@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a2/43/b34bbe4f72118b2ef8ebae458284cc5cbcb39e3951593ff6cdc135769abe/can_weather_data-0.2.tar.gz",
"platform": null,
"description": "# Canada Weather Data Package\n\n**can_weather_data** is a Python library that allows you to retrieve weather data from climate.weather.gc.ca. This package provides functions to extract historical weather data for a given location and time period. It uses the **env_canada** library to access historical weather data from Environment and Climate Change Canada.\n\n### Installation\n\npip install can_weather_data\n\n### Usage\n\n```python\nfrom can_weather_data.weatherdata import data_extract\n\ncord_list = ['48.508333', '-68.467667']\n\n# Set the start and end dates for the weather data retrieval.\nstart_date = datetime.strptime('Jan2015', '%b%Y')\nend_date = datetime.strptime('Dec2020', '%b%Y')\n\ndata_extract(cord_list, start_date, end_date)\n```\n\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Weather Data From climate.weather.gc.ca",
"version": "0.2",
"project_urls": {
"Homepage": "https://github.com/DulminiGuruge/can_weather_data"
},
"split_keywords": [
"weather",
"package",
"climate",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9cb1d2eb2a6155c4519c593c1e27a1813a46ba7d04fffcc3f00fdfc223bb47c2",
"md5": "08674810997e9c37ca9222281d2e5540",
"sha256": "912951ad84d77c24dd7f3ef0a44ca64b8ad1a6104805f87033f2609f08381815"
},
"downloads": -1,
"filename": "can_weather_data-0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "08674810997e9c37ca9222281d2e5540",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4148,
"upload_time": "2024-04-21T01:51:58",
"upload_time_iso_8601": "2024-04-21T01:51:58.592515Z",
"url": "https://files.pythonhosted.org/packages/9c/b1/d2eb2a6155c4519c593c1e27a1813a46ba7d04fffcc3f00fdfc223bb47c2/can_weather_data-0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a243b34bbe4f72118b2ef8ebae458284cc5cbcb39e3951593ff6cdc135769abe",
"md5": "0ab3b98aef69a48a1e8771a9c41a8fe7",
"sha256": "1988fceb94dc19e8b88a46cec9037cf924f0502b2dac366741c4814ca32acfb2"
},
"downloads": -1,
"filename": "can_weather_data-0.2.tar.gz",
"has_sig": false,
"md5_digest": "0ab3b98aef69a48a1e8771a9c41a8fe7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3755,
"upload_time": "2024-04-21T01:52:00",
"upload_time_iso_8601": "2024-04-21T01:52:00.386636Z",
"url": "https://files.pythonhosted.org/packages/a2/43/b34bbe4f72118b2ef8ebae458284cc5cbcb39e3951593ff6cdc135769abe/can_weather_data-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-21 01:52:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DulminiGuruge",
"github_project": "can_weather_data",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "can-weather-data"
}