Saravanan666/pypi-org huggingface dataset:
Package: weatherbug-spark
WeatherBug SparkA library for interacting with theWeatherBug Sparkservice to get the lightning strike locations and closest lightning strike distance.WeatherBug Spark is a service that can detect both cloud-to-ground and in-cloud lightning made possible by the WeatherBug's proprietary Total Lightning Network™.InstallationLinux:python3-mpipinstallweatherbug-sparkWindows:py -m pip install weatherbug-sparkUsageimportasyncioimportweatherbug_sparkasyncdefmain():data=awaitweatherbug_spark.get_data(latitude=42.3601,longitude=-71.0589)# Get the closest strike distanceprint(data.closestPulseDistance)# float# Get the local lightning strike locationsprint(data.pulseListAlert)# List of LightningStrike objects# Get the global lightning strike locationsprint(data.pulseListGlobal)# List of LightningStrike objects# Get the short messageprint(data.shortMessage)# Monitor Storms# Get the long messageprint(data.safetyMessage)# You are not in immediate danger now, but stay alert and frequently check WeatherBug ...# Get the hex code for the color of the alertprint(data.alertColor)# #F0D701if__name__=="__main__":asyncio.run(main())Classesget_datareturns aSparkResultobject, with includedLightningStrikeobjects.SparkResultFieldTypeDescriptionalertCodeintThe alert code. The higher the number, the closer the strikes.alertColorstrThe hex code for the color of the alert.closestPulseDistancefloatThe closest lightning strike distance in miles.closestPulseDirectionfloatThe closest lightning strike direction in degrees.pulseListAlertlist[LightningStrike]The local lightning strike locations.pulseListGloballist[LightningStrike]The global lightning strike locations.shortMessagestrThe short message.safetyMessagestrThe long message.LightningStrikeFieldTypeDescriptionlatitudefloatThe latitude of the lightning strike.longitudefloatThe longitude of the lightning strike.dateTimeUtcintThe date and time of the lightning strike in UTC.dateTimeUtcStrstrThe date and time of the lightning strike in UTC as a string.dateTimeLocalStrstrThe date and time of the lightning strike in local time as a string.
Package: weather-ch
Project Portfolio:https://github.com/calebyhan/CalebHanweather-chPython library for weather information. Docker library for WeatherAPI. This project is unaffiliated with the official company.Data fromWeatherAPI.InstallationUse the package managerpipto install weather-ch.pipinstallweather-chUsageimportweatherweatherAPI=weather.API("API KEY HERE")# returns current weather in LondonweatherAPI.current("London")# returns 3 day forecast of LondonweatherAPI.forecast("London")Documentationweather.API(api_key)API Keyweather.current(q, aqi="no", lang=-1)Realtime APIweather.forecast(q, days=3, alerts="no", aqi="no", lang=-1)Forecast APIweather.history(q, dt=-1, lang=-1)History APIweather.future(q, dt=-1, lang=-1)Future APIweather.ip(q, lang=-1)IP Lookup APIweather.astro(q, dt=-1, lang=-1)Astronomy APIweather.sports(q, lang=-1)Sports APIweather.timezone(q, lang=-1)Time Zone APIContributingPull requests are welcome. For major changes, please open an issue firstto discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: weatherchart
7 Day Weather forecastThe module provides a 7 day weather forecast from the Open Weather Map and then converted to am image using quickcharts.io  See a full article fromPythonHowToProgramWhat problem does this solve?The module will help to return a 7 day weather forecast for a given location either as a dictionary, a chart image file, or a web link with the chart imageHow does it do this?There are three key services that are used for this module:Thegeopylibrary to convert a string to lat-longOpen Weather Maponline service (you can get an API key through a free account in the profile section)Then finally fromQuickChartsto convert the time series weather data into a chartHow do you install this?MCLogger is avaialble through PyPi and you may use pip:pip install weatherchartOr, through git:git clone https://github.com/pub12/weatherchart.gitHow do you use weatherchart?The weatherchart library is super easy to use.  You need to simply pass the Open Weather API key, a timezone, and then a location string.  A URL will be returned of the chart or saved as a filefrom weatherchart import WeatherChart

wchart = WeatherChart('<open weather map token>', 'Asia/Hong_Kong')
print( wchart.get_forecast_chart_image_by_loc('Tokyo', 'out_file.jpg' ) )Class Methods overviewconstructor(self, map_key, tz_location='Asia/Singapore'):Constructor must include the Open Weather MAP API key, and also a timezone.  The timezone list can be found on theWiki Timezonepage.  The reason for the timzone is to ensure the right time period is extract for the next 7 daysget_full_weather_data(self, lat, long):Return a dictionary with weather a full detailed range of data (temperature, min, max, humidity and many more) for next 7 days including today.  The location must be provided as a lat long.get_forecast_by_location(self, loc_string):Return a dictionary with weather data (temperature, min, max, humidity) for next 7 days including today.  The location must be provided as a location description (e.g. "Seattle", "New York, New York").  Output is the same as the methodget_forecast()get_forecast(self, lat, long):Return a dictionary with weather data (temperature, min, max, humidity) for next 7 days including today.  The location must be provided as a lat long.A ditionary will be returned with the following:{
    'temp': <float>,
    'temp_min':  <float>,
    'temp_max':  <float>,
    'wind_speed':  <float>,
    'humidity':  <float> 
}get_forecast_chart_image_by_loc( self, loc_string,   output_file=None):This will return an image with a chart showing the 7 day forecast.  If a filename is provided then the image will be saved as an image as well (.jpg).  Input is a location sring and the function will return a URL string.  An example output below:7 day forecast for Tokyo, Japan
Package: weatherChina
weatherChinaThe most simple way to get China city weather through python.
一行代码查询近7日天气，pip一键安装，数据来源于中国天气网，只支持python3Installpip3installweatherChinaUsagedemo:importweatherChina# 快速使用# 主城区weather=weatherChina.getWeatherByNames('上海','上海')weather=weatherChina.getWeatherByNames('安徽','合肥','合肥')# 其它weather=weatherChina.getWeatherByNames('上海','浦东')weather=weatherChina.getWeatherByNames('西藏','日喀则','萨迦')#print(weather)# 查看所有地区、以及每个区域的id信息regionData=weatherChina.getRegionData()print(regionData)# 查询地区的idregionId=weatherChina.getRegionId('北京','朝阳')regionId=weatherChina.getRegionId('安徽','合肥','合肥')print(regionId)# 根据id查询近7日天气weather=weatherChina.getWeatherById(regionId)print(weather)# {'lowTemp': ['3', '5', '0', '1', '3', '4', '2'], 'highTemp': ['14', '15', '10', '9', '14', '17', '18'], 'detail': ['多云', '小雨', '小雨转晴', '晴', '多云转晴', '晴', '晴']}
Package: weathercli
[![Build Status](https://travis-ci.org/brianriley/weather-cli.png?branch=master)](https://travis-ci.org/brianriley/weather-cli)You’ve spent hours, days, months, maybeyearscustomizing your terminal. And yet so many things draw your attention away from it.GONE are the days of wasting non-terminal moments looking up the current weather! Now, ask your terminal:$ weather portland,me
It’s 6° and light snowThank you, terminal–I think Iwillspend more time inside with you.BUT WAIT, THERE’S MOAR!!You can now set your location as an environment variableWEATHERand never have to type that query again!$ export WEATHER=portland,me && weather
It’s 6° and light snow
$ weather
It’s 6° and light snowThe query you pass in will override the environment variable, though, so you can still check how people in less-fortunate climates are faring:$ export WEATHER=portland,me && weather “los angeles,ca”
It’s 76° and sunnyLive in one of those metric countries, you say? No problem!$ weather “tokyo,jp” –units celsius
It’s 8° and sky is clearAnd units can be saved as an environment variableWEATHER_UNITSas well:$ export WEATHER_UNITS=celsius && weather
It’s -8° and sky is clearOr maybe you prefer pretty pictures. Get it, withweather!$ weather tokyo,jp –iconify
55°☀Read more at:$ weather -hInstallInstallation couldn’t be easier:$ pip install weathercli(This is, of course, after you’ve runeasy_install pipandpip install –upgrade pip. Simple!)
Package: weather_clothing
Outside ClothesA module to help choose outside clothes based on the conditions outside.General UsageA list of clothes is compared to the a list of weather forecast dictionaries. If
the clothing item is appropriate for the forecast, it returns True and is
incremented. Once all comparisons are done, then the clothing item with the
lowest value is the recommended item to wear.SeeExample Testfor basic usage.Specific UsageThis package was originally written to be used in the home assistant integrationWeather Clothing.
Package: weather-collector
weather-collectorWhyNeed to register a command to collect weather data in difficult environments and as part of other automatation tasks. For example,
a regular, scheduled event triggers the collector.WhatBuild upon bulkhead to collect weather data without contaminating the packagebulkheadUsage-o specifies the filename
-i specifies the interval in seconds
-l the longitude
-t the latitudeweather-collector-o/home/dev/Documents/weather-collector/sample.csv-i1-l53.551086-t9.993682InstallationProduction Buildpipinstallweather-collectorDev BuildClone the repository withLinuxRun with one of the following:bashinstall.sh
./install.sh
shinstall.shWindowsDouble click oninstall.bator runinstall.batRun samplePlace .env file with parameters in the directoryOpenWeatherMapKey=keyOpenWeatherMapURL=api.openweathermap.orgTomorrowIOKey=keyTomorrowIOURL=api.tomorrow.ioFor robustness consider usingscreensudoapt-getinstallscreenTo detach pressCTRL+A,CTRL+DTo get back to a session typescreen-rweather-collector-o./sample.csv-i60-l53.551086-t9.993682&
Package: weathercom
WeathercomA Python package to get weather reports for any location from weather.com. API for weather.comInstallationUse the package managerpipto install weathercom.pipinstallweathercomUsageimportweathercomweatherDetails=weathercom.getCityWeatherDetails("bangalore")weatherDetails=weathercom.getCityWeatherDetails(city="bangalore",queryType="daily-data")weatherDetails=weathercom.getCityWeatherDetails(city="bangalore",queryType="ten-days-data")weatherDetails=weathercom.getCityWeatherDetails(city="bangalore",queryType="hourly-data")weatherDetails=weathercom.getCityWeatherDetails(city="bangalore",queryType="monthly-data")weatherDetais=weathercom.getCityWeatherDetails(city="bangalore",queryType="particular-date-data",date={'year':'2018','month':'09','date':'19')Defects to be corrected in next releaseBetter error handling, particular-date-data can only accept a date in the last five years, imporved user experienceContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: weather-command
Weather CommandA command line weather appInstallationInstallation withpipxis recommended.pipxinstallweather-commandAlternatively Weather Command can be installed with pip.pipinstallweather-commandUsageFirst an API key is needed fromOpenWeather, A free account is all that
is needed. Once you have your API key create an environment variable namedOPEN_WEATHER_API_KEYthat
constains your API key.exportOPEN_WEATHER_API_KEY=your-api-keyEach time the shell is restarted this variable will be cleared. To avoid this it can be added to your
profile. For example if your shell is zsh the API key can be added to the~/.zshenvfile. Doing this
will prevent the need to re-add the key each time the shell is started.To get the weather for a city:weathercityseattleOnce installed you can also add aliases to your shell to make it quick to get a forecast. For example
if your shell is zsh you can add something like the following to your~/.zshrcfile:aliaswe="weather zip 98109 -i --am-pm"aliaswed="weather zip 98109 -i --am-pm -f daily"aliasweh="weather zip 98109 -i --am-pm -f hourly"After adding this to the~/.zshrcyou will need to restart your terminal. After that typingwewill get the current forecast,wedwill get the daily forecast andwehwill get the hourly forecast.ExamplesCurrent WeatherCurrent Weather Temp OnlyDaily WeatherDaily Weather Temp OnlyHourly WeatherHourly Weather Temp OnlySettingsweather now has the ability to save settings to default certain flags. The list of possible settings can be seen with:weathersettings--helpContributingContributions to this project are welcome. If you are interested in contributing please see ourcontributing guide
Package: weathercrawl1
Weather-Forecast-ProgramA web crawler (command line prog.) which is capable of scrapping feeds from the weather.com site and display it.Pre-install RequirementsThis program needs the firefox web browser inorder for its successful operation side by side.
In addition to it, Python libraries like BeautifulSoup, Selenium webdriver, pandas and requests should be pre-installed.Description about the programThe program requires the user to input the place or location of a particular area and then its ask for a choice of its type of weather
forecasting which includes 'today' , 'hourly' , '5-day' , '10-day' , 'Weekend' and 'monthly'. Depending upon the user choice it displays the temperature on the selected location and also displays some additional information about the location.
Package: weather-crawling-app-99
weather_crawling is a django based website crawler.
here we are trying to fetceh weather condition according to place,data,type
here the procedure is:-
we have a ui for filling a form that take input date,place,type
we are making an url from the site url for searching the weather condition of that perticular place
then it shows some result according to the seaching key word in the class name 'styles__itemLink__23h5a'
if the content under this class is empty then we work with default url(this may come generraly due to slow internet)
then we search result according to the type by if else condition
showing the results
Package: weather-forecast
weather_forecastThe pip package provides weather forecasting information based on location or address. Using address, the weather_forecast provides location specific forecast. Currently only one function is included i.e forecast.Installpip install weather_forecastCode Usageimport weather_forecast as wf
wf.forecast(place = "Bangalore" , time="23:15:00" , date="2019-09-12" , forecast="daily")Command Line usageNavigate to./weather_forecast/and then execute the below command.python forecast.py -p Bangalorepython forecast.py -p Bangalore -d 2019-09-12
Package: weather-forecast-cli-dotnetthoughts
Python Weather Forecasting ToolThis is a command line tool accepts a list of cities and returns the weather forecast.Usageusage: app.py [-h] [--version] [--api-key API_KEY] [--date DATE] [--days DAYS] [--format {table,json,csv}] [--unit {metric,imperial,kelvin}] locations [locations ...]

positional arguments:
locations - Location names separated by spaces

optional arguments:
-h, --help Show the help message and exit
--version Show program's version number and exit

--api-key API_KEY - OpenWeatherMap API Key, if not provided default key is used.
--date DATE - Date for which the weather forecast is required. Format: YYYY-MM-DD (Optional, default is today)
--days DAYS - Number of days for which the weather forecast is required (Optional, default is 1)
--format {table,json,csv} - Output format (Optional, default is table)
--unit {metric,imperial,kelvin} - Temperature unit (Optional, default is metric)ToolsVSCode with Python extensionGitHub CopilotOpenWeatherMap API
Package: weather-forecaster
###Installationpip install weather-forcaster###Usage
###Inputimport weather-forecaster as wf
wf.forecast("india","delhi")###OutputScraping Weather Data
---------------------
Temperature: 39 °C
Climate: Haze
Location: New Delhi / Safdarjung
Current Time: 10 Jun 2021, 17:20:18
Latest Report: 10 Jun 2021, 14:30
Visibility: 4 km
Pressure: 995 mbar
Humidity: 46%
Dew Point: 25 °C
Package: weather-forecast-motd
MOTD - Message of the dayScript prints message of the day when a user log in Rabsberry PI via SSH connection.Example:Tassukka - Tampere - 26.1.2020 15:45
Lämpötila 1.68°C tuntuu -2.5°C
Korkein lämpötila 2.22°C matalin 0.56°C
Paine 997Pa kosteus 84%
Aurinko nousee 09:03 laskee 16:10
Package: weathergen
Aboutweathergengenerates time-varying weather profiles using a synthesis of in-situ observations and satellite reanalysis estimates of meteorological parameters, and is able to recreate weather patterns allowing for the simulation frameworks likemariato simulate climatologically-accurate ground-based astronomical observations.MethodologyAtmospheric parameters are generated by combining three ingredients:The probability distributions of each parameter for each time of year and time of day.An eigenmodal decomposition of how parameters covary.Characteristic spectra of how each eigenmode changes over time.These are all calculated using climatological data fromERA5,GML,ESO,MKWC, andMeteostat. For each region, reanalysis weather parameters are compiled and adjusted (e.g. for seasonal diurnal and trends) with respect to in-situ meteorological trends.The generated profiles depend on reanalysis data which are limited to a temporal resolution of an hour, but other means of adjustment are possible depending on the sophistication of the alternate sources of weather data. For example, the level of turbulent fluctuation in total column water vapor (the largest driver of sub-millimeter atmospheric interference) is not stationary from hour to hour.UsageInstall the package using pip:pipinstallweathergenImport the package and instantiate a`Weather`object, and pass it an array of times to the`generate`function. For example, to simulate hourly weather for Princeton, New Jersey between June 1st and September 1st we would writeimportnumpyasnpfromdatetimeimportdatetimeimportweathergent0=datetime(2022,6,1).timestamp()# June 1, 2022t1=datetime(2022,9,1).timestamp()# August 1, 2022gen_times=np.arange(t0,t1,3600)# three months of hourly dataweather=weathergen.Weather(region='princeton',seasonal=True,diurnal=True)weather.generate(time=gen_times,mode='random')Specified times should be supplied in Unix time. The weather parameters are contained in the attributes of theweatherobject, e.g.weather.temperatureorweather.pressure. The values are typically two-dimensional with shape(n_height, n_time), whereweather.heightandweather.timedescribe the time and height of each dimension, in Unix time and meters above sea level. Single-level parameters are described by a single number for each time and do not have a height dimension.Note that the supplied year is arbitrary; the underlying model considers only seasonal and diurnal climatological variations. All available regions are outlined in the dataframeweathergen.regions.
Package: weathergovapi
Weather APIThis is a very simple library to access information from the weather.gov api.>>>fromweathergovapiimportWeatherGovApi>>>point=WeatherGovApi.getPoint(31.9383,-81.3034)# Information from the API can be accessed directly>>>point.forecastUrl'https://api.weather.gov/gridpoints/CHS/39,33/forecast'# There are a few convenience methods>>>forecast=point.forecast()>>>current=forecast.periods[0]>>>current.detailedForecast'A chance of showers and thunderstorms before 4am, then a chance of rain showers and patchy fog. Cloudy, with a low around 62. West wind 2 to 9 mph. Chance of precipitation is 40%. New rainfall amounts less than a tenth of an inch possible.'
Package: weather-in
weather_inWhat is weather_in?weather_in is a simple script for terminal use.  It utilizes theOpen Weather Map APIto provide quick, relevant and basic information regarding a specified locale's weather.System Requirementspython3Installationpip install weather_inUsageTo use weather_in:Basic / Current Dayweather_in City State Country (country is optional; defaults to USA)(example: Pasadena California USA)note: State should not be abbreviatedExample Outputlow of: 63.68
high of: 105.73
few clouds```

### Forecast / Next Five Days

```-f or --forecast```

**Example Output**
```2021-08-01: high:84.34, low:82.76, clear sky
2021-08-02: high:84.87, low:82.81, clear sky
2021-08-03: high:85.48, low:83.34, clear sky
2021-08-04: high:84.72, low:83.91, clear sky
2021-08-05: high:84.4, low:83.62, clear sky```
Package: weather-info-yb2503
weather_info_yb2503weather_info_yb2503 will provide convenient weather infomation providing service with simple functions.Installation$pipinstallweather_info_yb2503UsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseweather_info_yb2503was created by Yunxin Bo. It is licensed under the terms of the MIT license.Creditsweather_info_yb2503was created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: weatherlab
WeatherLabAn IPython kernel extension to interact with WeatherLab JupyterLab extension to check weather conditions with data from OpenWeatherMap.Requirementsweatherlab >= 0.2.0ipython >= 7.13.0Installpipinstallweatherlab
jupyterlabextensioninstallweatherlabUsageThis package can be loades using the following command%load_ext weatherlabYou can access to the data fetched by WeaterLab extension using the magic line%weather_lab_dataor accessing directy to the variableWEATHER_LAB_DATAContributingInstall# Clone the repo to your local environment# Move to weatherlab directory# Install dependenciespoetryinstall# Link your development version of the extension with JupyterLabpoetryrunpipinstall-e.# Launch jupyter and start making changesjupyterlab
Package: weatherlink-live-local
WeatherLink Live Local Python APIPython library to read weather data from aDavis WeatherLink Live station+ connected sensors (e.g.Vantage Vue). Features:discover WeatherLink Live stations in the local networkread sensor values (called conditions) using thelocalAPI - no internet connection requiredAlthough the WeatherLink Live stations are tighly coupled with the web serviceweatherlink.com, it can be used in offline situations aswell. The well designed HTTP interface makes it easy to read the current weather data via the local network - perfect for IoT / SmartHome applications.
In fact, I couldn't find any other commercial weather station with an open ethernet-based protocol (please correct me if I'm wrong).To set up the WeatherLink Live stations, you need the Davis WeatherLink app (Android,iOS) and a weatherlink.com account. Further sensors can be connected to the station.
Afterwards, the weather data is accessible via weatherlink.com (if online) and the local API.DocumentationPython library:https://weatherlink-live-local-python.rtfd.io/API specification:https://weatherlink.github.io/weatherlink-live-local-api/Installpip install weatherlink-live-localExampleimportweatherlink_live_localaswllldevices=wlll.discover()print(devices)# select first device, get IP addressip_first_device=devices[0].ip_addresses[0]# specify unitswlll.set_units(temperature=wlll.units.TemperatureUnit.CELSIUS,pressure=wlll.units.PressureUnit.HECTOPASCAL,rain=wlll.units.RainUnit.MILLIMETER,wind_speed=wlll.units.WindSpeedUnit.METER_PER_SECOND,)# poll sensor data / conditionswhileTrue:conditions=wlll.get_conditions(ip_first_device)print(f"Inside temperature:{conditions.inside.temp:.2f}°C")print(f"Outside temperature:{conditions.integrated_sensor_suites[0].temp:.2f}°C")time.sleep(10)