Sunnyside
Installation
pip3 install sunnyside
Getting Started
Python Version
Sunnyside only supports python 3.6+
from sunnyside import Sunnyside
ref = Sunnyside("YOUR-API-KEY-HERE", "your-units-here") # Enter your api key here
Current Weather
https://openweathermap.org/current
Weather by city name
Note: Units are by default in Kelvin, to change units to imperial or celsius.
weather = ref.current_weather()
response = weather.get_current_weather_by_city_name("city_name") # Enter your city name here
Weather by city id
response = weather.get_current_weather_by_city_id("city_id")
Weather by coordinates
response = weather.get_current_weather_by_geo_coords("lat","lon")
Weather by zip code
response = weather.get_current_weather_by_zip_code("zipcode")
5 Day Weather Forecast
https://openweathermap.org/forecast5
Weather by city name
forecast = ref.five_day_forecast()
response = forecast.get_forecast_by_city_name("some_city_name_here")
Weather by city id
response = forecast.get_forecast_by_city_id("city_id")
Weather by coordinates
response = forecast.get_forecast_by_geo_coords("lat","lon")
Weather by zip code
response = forecast.get_forecast_by_zip_code("zipcode")
One Call
https://openweathermap.org/api/one-call-api
Get weather data from one call api
openweather = ref.one_call()
response = openweather.get_weather("33.441792","-94.037689")
Reference
https://openweathermap.org/api
https://openweathermap.org/current
Metadata
Release files for sunnyside 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sunnyside-2.0.0.tar.gz | 3.3 kB | Without provenance | Details for sunnyside-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sunnyside-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for sunnyside-2.0.0-py3-none-any.whl |
Total release size: 8.2 kB
Release files / sunnyside-2.0.0.tar.gz
| Download URL | sunnyside-2.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
947221b098951acd7343bfed6de82f70562ca16d5284947e96553f04a93cebe5
|
|
BLAKE2b-256 checksum How to use checksums |
edbaa667ce9bc963df68534832436ac084dba93629c16b4d73f354efcfd15ff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / sunnyside-2.0.0-py3-none-any.whl
| Download URL | sunnyside-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
806cc6457952925fa2fb615881535ae7c5353afa5e0bc284b9deedf656c6a12f
|
|
BLAKE2b-256 checksum How to use checksums |
22d629c1c1335db6e2d93674a63f337f7f7bbe7e12b8b92a36b6db7c1acf2ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for sunnyside 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.