{"id":13410930,"url":"https://github.com/cuba-weather/cuba-weather-python","last_synced_at":"2025-04-05T22:31:46.104Z","repository":{"id":53581068,"uuid":"230487887","full_name":"cuba-weather/cuba-weather-python","owner":"cuba-weather","description":"Application programming interface of the Cuba Weather project implemented in Python","archived":false,"fork":false,"pushed_at":"2021-03-23T08:05:19.000Z","size":68,"stargazers_count":16,"open_issues_count":3,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-07-30T20:38:14.842Z","etag":null,"topics":["cuba-weather","python","python-api","python-package","weather","weather-api"],"latest_commit_sha":null,"homepage":"https://cubaweather.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuba-weather.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-27T17:40:27.000Z","updated_at":"2024-07-30T20:38:14.842Z","dependencies_parsed_at":"2022-09-21T18:11:30.667Z","dependency_job_id":null,"html_url":"https://github.com/cuba-weather/cuba-weather-python","commit_stats":null,"previous_names":["daxslab/cuba-weather"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-weather%2Fcuba-weather-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-weather%2Fcuba-weather-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-weather%2Fcuba-weather-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-weather%2Fcuba-weather-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuba-weather","download_url":"https://codeload.github.com/cuba-weather/cuba-weather-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411237,"owners_count":20934650,"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":["cuba-weather","python","python-api","python-package","weather","weather-api"],"created_at":"2024-07-30T20:01:10.274Z","updated_at":"2025-04-05T22:31:45.838Z","avatar_url":"https://github.com/cuba-weather.png","language":"Python","readme":"# Cuba Weather Python\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\nApplication programming interface of the Cuba Weather project implemented in Python.\n\nCurrently the weather information is obtained from the Cuban search engine [www.redcuba.cu](https://www.redcuba.cu).\n\n## Install\n\n```bash\npip install git+https://github.com/cuba-weather/cuba-weather-python\n```\n\nYou can also clone or download this repository and at the root of the project do:\n\n```bash\npython setup.py install\n```\n\n## Usage\n\n### CLI\n\n```bash\nusage: cuba-weather.py [-h] [-v] [-c] [-t] [-d] [-u] [-p] [-w] [-g] location\n\npositional arguments:\n  location           location name\n\noptional arguments:\n  -h, --help         show this help message and exit\n  -v, --version      show program version\n  -c, --city-name    show location city name\n  -t, --temperature  show location temperature\n  -d, --timestamp    show location timestamp\n  -u, --humidity     show location humidity\n  -p, --pressure     show location pressure\n  -w, --wind         show location wind\n  -g, --general      show location general information\n```\n\nWhen just speciying the location and no other arguments, all the available information is displayed.\n\n### Package\n\n```python3\nfrom cuba_weather import RCApiClient\n\nlocation_input = input()\n\napi = RCApiClient()\n\nweather = api.get(location_input, suggestion=True)\n\nprint(weather)\n```\n","funding_links":[],"categories":["System"],"sub_categories":["Engineering Calculations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-weather%2Fcuba-weather-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuba-weather%2Fcuba-weather-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-weather%2Fcuba-weather-python/lists"}