{"id":35234845,"url":"https://github.com/uburuntu/yaweather","last_synced_at":"2026-04-02T02:17:15.373Z","repository":{"id":62590543,"uuid":"283565248","full_name":"uburuntu/yaweather","owner":"uburuntu","description":"☀️❄️ Yandex Weather API with typings and asyncio support","archived":false,"fork":false,"pushed_at":"2024-11-23T20:17:35.000Z","size":805,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-01T02:10:04.563Z","etag":null,"topics":["api","asyncio","typing","weather","yandex"],"latest_commit_sha":null,"homepage":"https://yandex.ru/dev/weather/","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/uburuntu.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":"2020-07-29T17:47:30.000Z","updated_at":"2026-03-18T12:39:53.000Z","dependencies_parsed_at":"2022-11-03T17:02:04.449Z","dependency_job_id":null,"html_url":"https://github.com/uburuntu/yaweather","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/uburuntu/yaweather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uburuntu%2Fyaweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uburuntu%2Fyaweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uburuntu%2Fyaweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uburuntu%2Fyaweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uburuntu","download_url":"https://codeload.github.com/uburuntu/yaweather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uburuntu%2Fyaweather/sbom","scorecard":{"id":906524,"data":{"date":"2025-08-11","repo":{"name":"github.com/uburuntu/yaweather","commit":"aae318ea96bbe6d2d8c935e3937f864d2d098417"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/17 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/pythonpublish.yml:8","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/pythonpublish.yml:34"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/uburuntu/yaweather/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/uburuntu/yaweather/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/uburuntu/yaweather/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/uburuntu/yaweather/pythonpublish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/uburuntu/yaweather/pythonpublish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:25","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: PYSEC-2023-120 / GHSA-45c4-8wx5-qw6w","Warn: Project is vulnerable to: PYSEC-2024-24 / GHSA-5h86-8mv2-jq9f","Warn: Project is vulnerable to: GHSA-5m98-qgg9-wh84","Warn: Project is vulnerable to: GHSA-7gpw-8wmc-pm8g","Warn: Project is vulnerable to: GHSA-8495-4g3g-x7pr","Warn: Project is vulnerable to: PYSEC-2024-26 / GHSA-8qpw-xqxj-h4r2","Warn: Project is vulnerable to: GHSA-9548-qrrj-x5pj","Warn: Project is vulnerable to: PYSEC-2023-246 / GHSA-gfw2-4jvh-wgfg","Warn: Project is vulnerable to: GHSA-pjjw-qhg8-p2p9","Warn: Project is vulnerable to: PYSEC-2023-250 / GHSA-q3qx-c6g2-7pw2","Warn: Project is vulnerable to: PYSEC-2023-251 / GHSA-qvrw-v9rv-5rjx","Warn: Project is vulnerable to: PYSEC-2021-76 / GHSA-v6wp-4m6f-gcjg","Warn: Project is vulnerable to: PYSEC-2023-247 / GHSA-xx9p-xxvh-7g8j","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T17:34:02.483Z","repository_id":62590543,"created_at":"2025-08-24T17:34:02.483Z","updated_at":"2025-08-24T17:34:02.483Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","asyncio","typing","weather","yandex"],"created_at":"2025-12-30T03:37:22.420Z","updated_at":"2026-04-02T02:17:15.365Z","avatar_url":"https://github.com/uburuntu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YaWeather | Yandex Weather API\n\n[![Python](https://img.shields.io/badge/Python-3.6%20%7C%203.7%20%7C%203.8-blue.svg?longCache=true)]()\n[![PyPI](https://img.shields.io/pypi/v/yaweather.svg)](https://pypi.python.org/pypi/yaweather)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/uburuntu/yaweather/blob/master/LICENSE)\n\n[![Build Status](https://travis-ci.org/uburuntu/yaweather.svg?branch=master)](https://travis-ci.org/uburuntu/yaweather)\n\n☀️🌤🌧🌩❄️ Yandex Weather API wrapper with typings and asyncio support.\n\nDocs: https://tech.yandex.com/weather/doc/dg/concepts/forecast-test-docpage ([RU](https://yandex.ru/dev/weather/doc/dg/concepts/forecast-test-docpage/))\n\nGet API Key: https://developer.tech.yandex.ru/services/18\n\n⚠️ **Warning**: As a developer of this library, I recommend you not to use Yandex Weather API, here are some reasons:\n- Incomplete responses even for metropolises — you can [have a look](yaweather/models/forecast.py) to all `Optional` fields that I had to use in models, that means you should add `None` checks before access literally to any attribute  \n- Bad official documentation — for example, I [really had to](scripts/build_models.py) parse html code of doc pages just because tables copying was broken\n- Incomprehensible and big delay answers from support team\n- Few requests available — 50 per day on free rate and 5000 per day for one test month\n- Closed information about real prices that are accessible only via support team\n\nConsider usage of [OpenWeatherMap](https://openweathermap.org/api) with 1 mln free requests every month and really [good documentation](https://openweathermap.org/api/one-call-api) which easy to understand and parse.\n\n![](https://i.imgur.com/pMf2tpT.png)\n\n## 📝 Table of Contents\n\n- [🎒 Installation](#-installation)\n- [🛠 Examples](#-examples)\n  - [Simple](#simple)\n  - [Simple Async](#simple-async)\n  - [Forecasts](#forecasts)\n  - [Forecasts Async](#forecasts-async)\n- [📜 Manual](#-manual)\n  - [Methods](#methods)\n  - [Types](#types)\n  - [In case of unsupported types](#in-case-of-unsupported-types)\n- [👨🏻‍💻 Author](#-author)\n- [💬 Contributing](#-contributing)\n- [📝 License](#-license)\n\n\n---\n\n## 🎒 Installation\nJust\n```\npip install yaweather\n```\n\n## 🛠 Examples\n\n### Simple\n\n```python3\nfrom yaweather import UnitedKingdom, YaWeather\n\ny = YaWeather(api_key='secret')\nres = y.forecast(UnitedKingdom.London)\n\nprint(f'Now: {res.fact.temp} °C, feels like {res.fact.feels_like} °C')\nprint(f'Condition: {res.fact.condition}')\n\n```\nOutput:\n```text\nNow: 18.0 °C, feels like 15.0 °C\nCondition: cloudy\n```\n\n### Simple Async\n\n```python3\nimport asyncio\n\nfrom yaweather import Russia, YaWeatherAsync\n\n\nasync def main():\n    async with YaWeatherAsync(api_key='secret') as y:\n        res = await y.forecast(Russia.Moscow)\n\n        print(f'Now: {res.fact.temp} °C, feels like {res.fact.feels_like} °C')\n        print(f'Condition: {res.fact.condition}')\n\n\nasyncio.run(main())\n\n```\nOutput:\n```text\nNow: 16.0 °C, feels like 16.0 °C\nCondition: clear\n```\n\n### Forecasts\n\n```python3\nfrom yaweather import UnitedStates, YaWeather\n\ny = YaWeather(api_key='secret')\n\nres = y.forecast(UnitedStates.NewYork)\n\nfor f in res.forecasts:\n    day = f.parts.day_short\n    print(f'{f.date} | {day.temp} °C, {day.condition}')\n\n```\nOutput:\n```text\n2020-07-30 | 32.0 °C, cloudy\n2020-07-31 | 26.0 °C, light-rain\n2020-08-01 | 28.0 °C, cloudy\n2020-08-02 | 28.0 °C, rain\n2020-08-03 | 28.0 °C, light-rain\n2020-08-04 | 27.0 °C, rain\n2020-08-05 | 29.0 °C, light-rain\n```\n\n### Forecasts Async\n\n```python3\nimport asyncio\n\nfrom yaweather import China, YaWeatherAsync\n\n\nasync def main():\n    async with YaWeatherAsync(api_key='secret') as y:\n        res = await y.forecast(China.Beijing)\n\n        for f in res.forecasts:\n            day = f.parts.day_short\n            print(f'{f.date} | {day.temp} °C, {day.condition}')\n\n\nasyncio.run(main())\n\n```\nOutput:\n```text\n2020-07-31 | 34.0 °C, light-rain\n2020-08-01 | 34.0 °C, cloudy\n2020-08-02 | 30.0 °C, heavy-rain\n2020-08-03 | 33.0 °C, cloudy\n2020-08-04 | 35.0 °C, cloudy\n2020-08-05 | 34.0 °C, light-rain\n2020-08-06 | 31.0 °C, heavy-rain\n```\n\n## 📜 Manual\n\n### Methods\nAPI have one method:\n* `forecast` — request for the forecast, return type: `ResponseForecast`\n\n### Types\nThis library uses [pydantic](https://github.com/samuelcolvin/pydantic/) for parsing API responses.\nYou can see data models in [yaweather/models](yaweather/models).\n\n### In case of unsupported types\nAPI results can change and the library may not parse the new result. So you can request «raw» dicts: \n```python3\nraw_dict = y.forecast_raw(UnitedKingdom.London)\n```\n\n## 👨🏻‍💻 Author\n\n**Ramzan Bekbulatov**:\n- Telegram: [@rm_bk](https://t.me/rm_bk)\n- Github: [@uburuntu](https://github.com/uburuntu)\n\n## 💬 Contributing\n\nContributions, issues and feature requests are welcome! \n\n## 📝 License\n\nThis project is [MIT](https://github.com/uburuntu/yaweather/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuburuntu%2Fyaweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuburuntu%2Fyaweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuburuntu%2Fyaweather/lists"}