File: geocoding.py

package info (click to toggle)
python-open-meteo 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 388 kB
  • sloc: python: 572; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Asynchronous client for the Open-Meteo API."""
import asyncio

from open_meteo import OpenMeteo


async def main() -> None:
    """Show example on using the Open-Meteo API client."""
    async with OpenMeteo() as open_meteo:
        search = await open_meteo.geocoding(
            name="Enschede",
        )
        print(search)


if __name__ == "__main__":
    asyncio.run(main())