skycast-google
A lightweight Python client for Google Maps Geocoding and Weather forecast APIs.
Installation
pip install skycast-google
(This automatically installs dependencies like requests).
Quick Start
import os
from skycast_google import Weather
# Initialize with your Google API Key
api_key = os.getenv("API_KEY_GOOGLE")
weather = Weather(api_key=api_key)
# Get 7-day forecast text
forecast_text = weather.request_forecast_text(city="Lima", days=7)
print(forecast_text)
Get Raw Forecast Data
forecast_days, location_name = weather.request_forecast(city="Ica", days=7)
for day in forecast_days:
date = day["displayDate"]
condition = day["daytimeForecast"]["weatherCondition"]["description"]["text"]
print(f"{date['day']}/{date['month']}/{date['year']}: {condition}")
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
skycast_google-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skycast_google-0.1.0.tar.gz.
File metadata
- Download URL: skycast_google-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c2ef2cabe98023a98406ddd383b46bc0901643c8c75b81edfe445828181b63
|
|
| MD5 |
e29fbe57d21eea2630a7afbdb0f2403f
|
|
| BLAKE2b-256 |
89c1f311148bf82c30ff0fddba7316b22e8fd6c8b41a0d833cbffe556ffee835
|
File details
Details for the file skycast_google-0.1.0-py3-none-any.whl.
File metadata
- Download URL: skycast_google-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06c70e6e2e21aeab950c9524024d6d52d247cbfd4c6abe21ea82c0d063d868d
|
|
| MD5 |
b97f070886ea55bc6bbb5b18ff5a0046
|
|
| BLAKE2b-256 |
a38ffae76bfb37e1d4f3ce3af0712a4cdcda11bff58bba1e593613bbfce8617d
|