You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://www.buymeacoffee.com/LmAl1n9"target="_blank"><imgsrc="https://www.buymeacoffee.com/assets/img/custom_images/black_img.png"alt="Buy Me A Coffee"style="height: auto!important;width: auto!important;" ></a>
PyOWM is a client Python wrapper library for OpenWeatherMap (OWM) web APIs. It allows quick and easy consumption of OWM data from Python applications via a simple object model and in a human-friendly fashion.
20
20
21
+
PyOWM runs on Python 3.7+
22
+
23
+
**Former Dark Sky API users**: you can can use PyOWM to get [OpenWeatherMap's OneCall API](https://openweathermap.org/api/one-call-api) data as an easy replacement to Dark Sky
24
+
25
+
### What kind of data do I get with PyOWM ?
21
26
With PyOWM you can integrate into your code any of the following OpenWeatherMap web APIs:
22
27
23
28
-**Weather API v2.5** + **OneCall API**, providing current weather data, weather forecasts, weather history
@@ -28,11 +33,7 @@ With PyOWM you can integrate into your code any of the following OpenWeatherMap
28
33
-**Weather Alerts API v3.0**, allowing to set triggers on weather conditions and areas and poll for spawned alerts
29
34
-**Image tiles** for several map layers provided by OWM
30
35
31
-
PyOWM runs on Python 3.7+
32
-
33
-
**Former Dark Sky API users**: you can can use PyOWM to get [OpenWeatherMap's OneCall API](https://openweathermap.org/api/one-call-api) data as an easy replacement for Dark Sky
34
-
35
-
## Get started
36
+
## Get started
36
37
37
38
### API key
38
39
@@ -45,12 +46,13 @@ Please notice that the free API subscription plan is subject to requests throttl
45
46
With a free OWM API Key:
46
47
47
48
```python
48
-
import pyowm
49
+
from pyowmimportOWM
49
50
50
-
owm =pyowm.OWM('your-API-key') # You MUST provide a valid API key
51
+
owm = OWM('your-API-key') # You MUST provide a valid API key
51
52
52
53
# Search for current weather in London (Great Britain)
0 commit comments