Skip to content

Kamwebdev/Forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forecast

Modern python3 app for interacting with API AccuWeather. Based on my article.

Installation:

  1. Create file .env :
API_KEY = '<your api key from https://developer.accuweather.com>'  
ACCUWEATHER_MIRROR_URL = 'http://dataservice.accuweather.com'
  1. Execute:
python3 -m venv myvenv
[linux] source myvenv/bin/activate
[windows] myvenv\Scripts\activate.bat
pip3 install -r requirements.txt

Running the sample

python.exe main.py gdansk -v

Output:

Date: 16.01.2022, temperature: 1.6°C

Running the tests

pytest .\weatcher_test.py

About

The class for interacting with API AccuWeather.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages