{"id":19968624,"url":"https://github.com/null8626/python-weather","last_synced_at":"2026-01-23T13:11:01.707Z","repository":{"id":41099376,"uuid":"328335330","full_name":"null8626/python-weather","owner":"null8626","description":"A free and asynchronous weather API wrapper made in python, for python.","archived":false,"fork":false,"pushed_at":"2025-03-20T14:05:43.000Z","size":413,"stargazers_count":106,"open_issues_count":2,"forks_count":31,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T03:15:17.756Z","etag":null,"topics":["data-science","forecast","python","weather","weather-api","weather-forecast"],"latest_commit_sha":null,"homepage":"https://python-weather.rtfd.io","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/null8626.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.yml","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"null8626","ko_fi":"null8626"}},"created_at":"2021-01-10T08:19:24.000Z","updated_at":"2025-03-20T14:05:48.000Z","dependencies_parsed_at":"2023-10-15T12:02:42.385Z","dependency_job_id":"2eaee419-48c0-4ac6-860c-d01e1534c89d","html_url":"https://github.com/null8626/python-weather","commit_stats":{"total_commits":107,"total_committers":9,"mean_commits":11.88888888888889,"dds":0.5514018691588785,"last_synced_commit":"d61b485264318e53101d1126666fc9171e0e0a67"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null8626%2Fpython-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null8626%2Fpython-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null8626%2Fpython-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null8626%2Fpython-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null8626","download_url":"https://codeload.github.com/null8626/python-weather/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980836,"owners_count":21027808,"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":["data-science","forecast","python","weather","weather-api","weather-forecast"],"created_at":"2024-11-13T02:46:24.032Z","updated_at":"2026-01-23T13:11:01.700Z","avatar_url":"https://github.com/null8626.png","language":"Python","funding_links":["https://github.com/sponsors/null8626","https://ko-fi.com/null8626"],"categories":[],"sub_categories":[],"readme":"# [python-weather][pypi-url] [![pypi][pypi-image]][pypi-url] [![pypi downloads][pypi-downloads-image]][pypi-url] [![codacy-badge][codacy-image]][codacy-url] [![codecov-badge][codecov-image]][codecov-url] [![ko-fi][ko-fi-brief-image]][ko-fi-url]\n\n[pypi-url]: https://pypi.org/project/python-weather/\n[pypi-image]: https://img.shields.io/pypi/v/python-weather.svg?style=flat-square\n[pypi-downloads-image]: https://img.shields.io/pypi/dm/python-weather?style=flat-square\n[codacy-url]: https://app.codacy.com/gh/null8626/python-weather/dashboard\n[codacy-image]: https://app.codacy.com/project/badge/Grade/0f7721b7e4314a748c75a04f0a7e0ce3\n[codecov-url]: https://codecov.io/gh/null8626/python-weather\n[codecov-image]: https://codecov.io/gh/null8626/python-weather/graph/badge.svg\n[ko-fi-url]: https://ko-fi.com/null8626\n[ko-fi-image]: https://ko-fi.com/img/githubbutton_sm.svg\n[ko-fi-brief-image]: https://img.shields.io/badge/donations-ko--fi-red?color=ff5e5b\u0026style=flat-square\n\nA free and asynchronous weather Python API wrapper made in Python, for Python.\n\n## Getting started\n\nRun the following command in your terminal:\n\n```console\npip install python-weather\n```\n\n## Example\n\nFor more information, please read the [documentation](https://python-weather.readthedocs.io/en/latest/).\n\n```py\n# Import the module.\nimport python_weather\n\nimport asyncio\n\n\nasync def main() -\u003e None:\n  \n  # Declare the client. The measuring unit used defaults to the metric system (celcius, km/h, etc.)\n  async with python_weather.Client(unit=python_weather.IMPERIAL) as client:\n    \n    # Fetch a weather forecast from a city.\n    weather = await client.get('New York')\n    \n    # Fetch the temperature for today.\n    print(weather.temperature)\n    \n    # Fetch weather forecast for upcoming days.\n    for daily in weather:\n      print(daily)\n    \n      # Each daily forecast has their own hourly forecasts.\n      for hourly in daily:\n        print(f' --\u003e {hourly!r}')\n\nif __name__ == '__main__':\n  asyncio.run(main())\n```\n\n## Data source\n\nThis library depends on [`wttr.in`](https://github.com/chubin/wttr.in), which uses data from the [World Weather Online API](https://www.worldweatheronline.com/weather-api/).\n\n## Donations\n\nIf you want to support this project, consider donating! ❤\n\n[![ko-fi][ko-fi-image]][ko-fi-url]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull8626%2Fpython-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull8626%2Fpython-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull8626%2Fpython-weather/lists"}