All Projects â†’ cuba-weather â†’ cuba-weather-python

cuba-weather / cuba-weather-python

Licence: LGPL-3.0 license
Application programming interface of the Cuba Weather project implemented in Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to cuba-weather-python

info-bot
🤖 A Versatile Telegram Bot
Stars: ✭ 37 (+117.65%)
Mutual labels:  weather, weather-api
meteofrance-api
Python client for MÊtÊo-France API. | Client python pour l'API MÊtÊo-France
Stars: ✭ 50 (+194.12%)
Mutual labels:  weather, weather-api
dwdweather2
Python client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.
Stars: ✭ 68 (+300%)
Mutual labels:  weather, weather-api
wetterdienst
Open weather data for humans
Stars: ✭ 190 (+1017.65%)
Mutual labels:  weather, weather-api
weather-api
A RESTful API to check the weather
Stars: ✭ 209 (+1129.41%)
Mutual labels:  weather, weather-api
api
Community discussion and documentation for the NWS API
Stars: ✭ 168 (+888.24%)
Mutual labels:  weather, weather-api
VWapi
⛈ ☀ī¸ Visual Weather api. Returns beautiful pictures with the current weather.
Stars: ✭ 33 (+94.12%)
Mutual labels:  weather, weather-api
cpython
Alternative StdLib for Nim for Python targets, hijacks Python StdLib for Nim
Stars: ✭ 75 (+341.18%)
Mutual labels:  python-api, python-package
rainviewer-api-example
How to use RainViewer API: simple HTML + JS code which render an animated weather radar overlay on the map
Stars: ✭ 56 (+229.41%)
Mutual labels:  weather, weather-api
react-weather-app
⛅ī¸ PWA Weather App made with ReactJS
Stars: ✭ 147 (+764.71%)
Mutual labels:  weather, weather-api
cuba-weather-flutter
Application for mobile devices of the Cuba Weather project implemented with Flutter
Stars: ✭ 28 (+64.71%)
Mutual labels:  weather, cuba-weather
Wttr.in
⛅ The right way to check the weather
Stars: ✭ 16,345 (+96047.06%)
Mutual labels:  weather, weather-api
riem
✈ī¸ ☀ī¸ R package for accessing ASOS data via the Iowa Environment Mesonet ☁ī¸ ✈ī¸
Stars: ✭ 38 (+123.53%)
Mutual labels:  weather, weather-api
Weather
Weather Android App using apixu API https://www.apixu.com
Stars: ✭ 48 (+182.35%)
Mutual labels:  weather, weather-api
Weather Shield
Barometric pressure, temperature, humidity and light sensing weather shield for Arduino.
Stars: ✭ 62 (+264.71%)
Mutual labels:  weather
leaflet-velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 467 (+2647.06%)
Mutual labels:  weather
Real-World-Weather
Unity project that displays the current weather in your location in real-time using the Dark Sky API
Stars: ✭ 39 (+129.41%)
Mutual labels:  weather
433MHz Tx Rx
Arduino based 433MHz Tx and Rx combo using Manchester protocol
Stars: ✭ 27 (+58.82%)
Mutual labels:  weather
openweather-laravel-api
Laravel OpenWeather API is a Laravel package to connect Open Weather Map API and get wether data in your own format laravel app.
Stars: ✭ 54 (+217.65%)
Mutual labels:  weather
geonamescache
geonamescache - a Python library for quick access to a subset of GeoNames data.
Stars: ✭ 76 (+347.06%)
Mutual labels:  python-package

Cuba Weather Python

License: MIT

Application programming interface of the Cuba Weather project implemented in Python.

Currently the weather information is obtained from the Cuban search engine www.redcuba.cu.

Install

pip install git+https://github.com/cuba-weather/cuba-weather-python

You can also clone or download this repository and at the root of the project do:

python setup.py install

Usage

CLI

usage: cuba-weather.py [-h] [-v] [-c] [-t] [-d] [-u] [-p] [-w] [-g] location

positional arguments:
  location           location name

optional arguments:
  -h, --help         show this help message and exit
  -v, --version      show program version
  -c, --city-name    show location city name
  -t, --temperature  show location temperature
  -d, --timestamp    show location timestamp
  -u, --humidity     show location humidity
  -p, --pressure     show location pressure
  -w, --wind         show location wind
  -g, --general      show location general information

When just speciying the location and no other arguments, all the available information is displayed.

Package

from cuba_weather import RCApiClient

location_input = input()

api = RCApiClient()

weather = api.get(location_input, suggestion=True)

print(weather)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].