Git Product home page Git Product logo

location_to_climate_api's Introduction

LocToWeatherAPI

This API is used for converting location name as a string to the respective locality's weather data. Import module main from package LocToWeatherAPI. Call main.driver(place,date="",type_of_forecast="<Any one from 1 to 4 in string format>"). You can pass ANY ONE OF the keyword arguments - Date in "YYYY-MM-DD" format/ forecast type required ('1' for today {Default Selection}, '2' for monthly,'3' for 5-day and '4' for 10-day). We are relying on APIs used by weather.com internally for extracting the respective data.

For ex:

1.If you just want today's weather metrics with place name:

from LocToWeatherAPI import main
main.driver("Place-Name")

2.If you just want the current month's forecast with place name:

from LocToWeatherAPI import main
main.driver("Place-Name",type_of_forecast="2")

3.If you just want some date's weather prediction with place name:

from LocToWeatherAPI import main
main.driver("Place-Name",date="date string in yyyy-mm-dd format")

package is installable as "pip install LocToWeatherAPI"

If no/wrong keyword arguments given, it may result in wrong output

Included BROWSABLE API can be started with :

from LocToWeatherAPI import api_server
api_server.start()

Here the home page, i.e, "/" contains the instructions for accessing the different endpoints.

For ex:

"/Name of Place/" or "/Name of Place/1/" - Today's weather for Place
"/Name of Place/2/" - Monthly forecast for place
"/Name of Place/3/" - 5 days forecast for place
"/Name of Place/4/" - 10 days forecast for place
"/Name of Place/Date/" - Date's forecast for place

The package has been uploaded to pypi, viewable at : "https://pypi.org/project/LocToWeatherAPI/

location_to_climate_api's People

Contributors

kinjaldas avatar dependabot[bot] 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.