Git Product home page Git Product logo

weather_api_client's Introduction

Weather API client

Summary

  1. Task
  2. Launch
  3. Examples

D. Build a command line API client

Using the Metaweather API, make a command line tool that receives a city name as argument and says whether it’s going to rain tomorrow in this city or not. Here again, packaging and tests are optional, but always appreciated. This can be done quite shortly if you’re on a schedule and stick to the minimum.

You need to install Python 3 on your local machine and meet the following conditions:

  1. Clone the repository to your local machine
  2. In the project root directory, install and run the virtual environment
 python3 -m venv venv
 source venv/bin/activate
  1. Install requirements:
 pip install -r requirements.txt
  1. Run script:
 python3 openweather_cli.py CITY

python3 openweather_cli.py --help
Get help

python3 openweather_cli.py --singapore
Get rainy forecast

python3 openweather_cli.py 'new york'
Get not rainy forecast

weather_api_client's People

Contributors

reakfog avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.