Skip to content

joeychilson/tomorrow-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tomorrow Client

A Python client for the Tomorrow.io API.

Endpoints

  • Get Forecast

Example

import asyncio

from tomorrow_client import TomorrowClient
from tomorrow_client.models import TimeStep, Units

async def main():
    client = TomorrowClient(api_key="")
    try:
        response = await client.get_forecast(
            location="new york", timesteps=TimeStep.HOURLY, units=Units.IMPERIAL
        )
        print(response)
    except Exception as e:
        print(f"An error occurred: {str(e)}")

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

About

A Python client for the tomorrow.io API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages