aiohere
Asynchronous Python client for the HERE API
Based on herepy
Installation
pip install aiohere
Usage
from aiohere import AioHere, WeatherProductType
import asyncio
API_KEY = ""
async def main():
"""Show example how to get weather forecast for your location."""
async with AioHere(api_key=API_KEY) as aiohere:
response = await aiohere.weather_for_coordinates(
latitude=49.9836187,
longitude=8.2329145,
products=[WeatherProductType.FORECAST_7DAYS_SIMPLE],
)
lowTemperature = response["dailyForecasts"][0]["forecasts"][0]["lowTemperature"]
highTemperature = response["dailyForecasts"][0]["forecasts"][0][
"highTemperature"
]
weekday = response["dailyForecasts"][0]["forecasts"][0]["weekday"]
print(
f"Temperature on {weekday} will be between {lowTemperature}°C and {highTemperature}°C"
)
if __name__ == "__main__":
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
Metadata
Release files for aiohere 2.2.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 |
|---|---|---|---|---|
| aiohere-2.2.0.tar.gz | 7.2 kB | Without provenance | Details for aiohere-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiohere-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for aiohere-2.2.0-py3-none-any.whl |
Total release size: 16.6 kB
Release files / aiohere-2.2.0.tar.gz
| Download URL | aiohere-2.2.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74dd9994e3f60af5e702f4ac534ade7d6ddeeea245fac9d5dc89bc29a92e83c6
|
|
BLAKE2b-256 checksum How to use checksums |
f7e60eba35b823ce72415a8e8dce5d65ae8b1d87912e191ebaa1ce8008d93446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10
|
Release files / aiohere-2.2.0-py3-none-any.whl
| Download URL | aiohere-2.2.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14147b7f553ca0b5ea4d1afeb13430a785ba052ef6340c1a4940ed9efcaa96f1
|
|
BLAKE2b-256 checksum How to use checksums |
297f19d498f7189c782c8258ad5433a11c970383e4c1922cc5c183047c34a359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10
|
Security for aiohere 2.2.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.