Using the Open Weather Map API with Python

In Using the Open Weather Map API with curl we saw how to fetch the weather using curl.
Now we are going to use Python as that will make it easier to use this as part of a larger application.
Before you read this article, make sure you read the one using curl.

Configuration file

It is better to store all API keys and passwords in separate configuration files that are usually not stored and distributed together
with the source code. That gives a lot of flexibility.

Comments

Author: Gabor Szabo

Gabor who runs the Code Maven site helps companies set up test automation, CI/CD
Continuous Integration and Continuous Deployment and other DevOps related
systems. Gabor can help your team improve the development speed and reduce the risk of bugs.