python-weather
A free and asynchronous weather API wrapper made in python.
Simple Usage
# import the module
import python_weather
# declare the client. format defaults to metric system (celcius, km/h, etc.)
client = python_weather.Client(format=python_weather.IMPERIAL)
# fetch a weather forecast from a city
weather = await client.find("Washington DC")
# returns the current city temperature (int)
print(weather.current.temperature)
# get the weather forecast for a few days
for forecast in weather.forecast:
print(str(forecast.date), forecast.sky_text, forecast.temperature)
# close the wrapper once done
await client.close()
Metadata
Release files for python-weather 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-weather-0.2.3.tar.gz | 5.5 kB | Details |
Release files / python-weather-0.2.3.tar.gz
| Download URL | python-weather-0.2.3.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
550b2c1a39f504b8abb8c42ec7e85827b6b4aed651735b78ad8fbca3471abba5
|
|
BLAKE2b-256 checksum How to use checksums |
6349dcba27424a01b6119fdd5a7da5beba6eb96398f307ef151d1032e270640c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|