Releases: null8626/python-weather
python-weather-2.0.7
python-weather version 2.0.7 is here!
This is a quick bug-squishing update after the previous update yesterday!
Changelog:
- 🟦 Fix
AttributeError
upon callingWindDirection
helper functions. - 🟩 Add
__int__
helper implementation for theWindDirection
enum. - 🟩 Add optional
max_retries
keyword argument to theClient
constructor. - 🟦 Refactor the
Kind
enum to make its code more readable. - 🟦 Documentation fixes.
Thank you everyone for supporting python-weather
! Much love! ❤️
python-weather-2.0.5
python-weather version 2.0.5 is here!
This is a pretty BIG update with NO breaking changes!
Changelog:
- 🟦 Migrate from using Python properties to raw Python attributes, this should save 50 KB in the size of the
Forecast
object. - 🟦 Fix infinite loop while calling the
__iter__
or__list__
helper implementations of the forecast objects. - 🟦 Fix no status code error checking on clients using pre-existing
ClientSession
objects. - 🟦 The test workflow now also tests the example code in the README.
- 🟩 Add
__len__
helper implementations for the forecast classes. - 🟦 Bump the
aiohttp
dependency to be at least version3.10.10
.
Thank you so much for 100 stars! I cannot express how much i am thankful for this! ❤️
I am not in the best mood mentally for the past few months and certainly not active in maintaining these open source GitHub projects anymore because of uni -- but my heart is very grateful that lots of people appreciate my little side project from 2021! ❤️
Thank you everyone for supporting python-weather
! Much love! ❤️❤️
python-weather-2.0.4
python-weather version 2.0.4 is here!
Changelog:
- 🟦 The
Client.close
method now no longer closes theClientSession
if an existingClientSession
was provided in the constructor. - 🟩 HTTP exceptions are now wrapped under
RequestError
. - 🟩 Add
__iter__
and__list__
helper implementations for the forecast classes. - 🟦 Bump the
aiohttp
dependency to be at least version3.10.8
. - 🟩 Add an additional
raise_for_status
argument to the defaultClientSession
. - 🟦 Refactor the regex retrieval for the
Forecast.local_population
property.
As always, thank you SO much for supporting python-weather! Much love! ❤️
python-weather-2.0.3
python-weather version 2.0.3 is here!
A quick bug fix update!
Changelog:
- 🟦 Fix potential
NameError
while accessing thePhase.emoji
property. - 🟦 Refactors on the request delay calculation.
- 🟦 Fix broken donations redirect in the documentation page.
As always, thank you so much for supporting python-weather! Happy coding! ❤️
python-weather-2.0.2
python-weather version 2.0.2 is here!
A quick minor update!
Changelog:
- 🟩 Add a donation link over at https://ko-fi.com/null8626.
- 🟦 As of 19 April 2024, all GitHub commits sent to the repository (both manual and automated) will be GPG-signed.
As always, thank you so much for using and supporting python-weather! Happy coding! ❤️
python-weather-2.0.1
python-weather version 2.0.1 is here!
This update brings in lots of bugfixes and refactors thanks to the migration from using yapf
to ruff
!
Changelog:
- 🟦 Migrate from
yapf
toruff
. - 🟦 Fix potential
NameError
while modifying forecast unit or locale. - 🟦 Remove several unused imports.
- 🟦 Fix potential
NameError
on some typings.
As always, thank you all for supporting python-weather! Much love ❤️❤️❤️
python-weather-2.0.0
python-weather version 2.0.0 is here!
Lots of major breaking changes are done in this update for consistency!
Changelog:
- 🟥 Rename the main forecast's class name from
Weather
toForecast
. - 🟥 Merge
CurrentForecast
class' properties withForecast
's. Therefore thecurrent
property is removed. - 🟥 Merge
Area
class' properties withForecast
. - 🟥 Rename
Weather.forecasts
toForecast.daily_forecasts
. - 🟥 Rename
Weather.location
toForecast.coordinates
. The former now returns the forecast location's name and the latter is no longer an optional type. - 🟥 Rename
CurrentForecast.chances_of_hightemp
toForecast.chances_of_high_temperature
. - 🟥 Rename
CurrentForecast.chances_of_remdry
toForecast.chances_of_remaining_dry
. - 🟥 Rename
CurrentForecast.date
toForecast.datetime
. - 🟥 Rename
DailyForecast.hourly
toDailyForecast.hourly_forecasts
. - 🟥 Rename
Ultraviolet
toUltraViolet
. - 🟩
HourlyForecast.heat_index
now returns a convenience enum calledHeatIndex
. - 🟥 Merge
Astronomy
class' properties withDailyForecast
. - 🟥 Rename
Astronomy.sun_rise
toDailyForecast.sunrise
. - 🟥 Rename
Astronomy.sun_set
toDailyForecast.sunset
. - 🟥 Rename
Astronomy.moon_rise
toDailyForecast.moonrise
. - 🟥 Rename
Astronomy.moon_set
toDailyForecast.moonset
.
Thank you all for supporting python-weather! Much love ❤️❤️
python-weather-1.1.2
python-weather version 1.1.2 is here!
Changelog:
🟩 Add an official project documentation in https://python-weather.readthedocs.io/en/latest/.
Thank you all for supporting python-weather! Happy coding! Much love ❤️❤️
python-weather-1.1.1
python-weather v1.1.1 is here!
changelog:
- refactor: renamed
chances_of_remdry
tochances_of_remaining_dry
in order to reduce confusion, the former is now deprecated (#53) - deps: bump
aiohttp
dependency fromv3.9.0
tov3.9.3
python-weather-1.1.0
python-weather v1.1.0 is here!
changelog:
- fix: added support for Python 3.12 by upgrading the
aiohttp
dependency tov3.9.0
! this also means that the library no longer supports Python 3.7, which was discontinued this June. (#50) - refactor: removed several instances of copy-pasted code.