File: geocoding.py

package info (click to toggle)
python-open-meteo 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 516 kB
  • sloc: python: 753; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""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())