weathergrabber 0.0.8b5__tar.gz → 0.0.8b7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. {weathergrabber-0.0.8b5/weathergrabber.egg-info → weathergrabber-0.0.8b7}/PKG-INFO +1 -1
  2. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/pyproject.toml +1 -1
  3. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/__init__.py +1 -1
  4. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/adapter/tty/waybar_tty.py +1 -1
  5. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/moon_phase_enum.py +3 -2
  6. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/weather_icon_enum.py +1 -0
  7. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_daily_forecast_service.py +1 -1
  8. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_today_details_service.py +1 -0
  9. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7/weathergrabber.egg-info}/PKG-INFO +1 -1
  10. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/LICENSE +0 -0
  11. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/README.md +0 -0
  12. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/setup.cfg +0 -0
  13. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/tests/test_cli.py +0 -0
  14. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/tests/test_cli_version.py +0 -0
  15. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/tests/test_core.py +0 -0
  16. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/tests/test_main.py +0 -0
  17. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/__main__.py +0 -0
  18. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/adapter/client/weather_api.py +0 -0
  19. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/adapter/client/weather_search_api.py +0 -0
  20. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/adapter/tty/console_tty.py +0 -0
  21. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/adapter/tty/json_tty.py +0 -0
  22. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/cli.py +0 -0
  23. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/core.py +0 -0
  24. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/icon_enum.py +0 -0
  25. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/air_quality_index_mapper.py +0 -0
  26. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/city_location_mapper.py +0 -0
  27. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/color_mapper.py +0 -0
  28. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/current_conditions_mapper.py +0 -0
  29. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/daily_predictions_mapper.py +0 -0
  30. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/day_night_mapper.py +0 -0
  31. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/forecast_mapper.py +0 -0
  32. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/health_activities_mapper.py +0 -0
  33. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/hourly_predictions_mapper.py +0 -0
  34. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/label_value_mapper.py +0 -0
  35. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/moon_phase_mapper.py +0 -0
  36. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/precipitation_mapper.py +0 -0
  37. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/search_mapper.py +0 -0
  38. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/sunrise_sunset_mapper.py +0 -0
  39. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/temperature_high_low_mapper.py +0 -0
  40. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/timestamp_mapper.py +0 -0
  41. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/today_details_mapper.py +0 -0
  42. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/uv_index_mapper.py +0 -0
  43. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/weather_icon_enum_mapper.py +0 -0
  44. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/mapper/wind_mapper.py +0 -0
  45. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/output_enum.py +0 -0
  46. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/adapter/params.py +0 -0
  47. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/air_quality_index.py +0 -0
  48. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/city_location.py +0 -0
  49. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/color.py +0 -0
  50. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/current_conditions.py +0 -0
  51. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/daily_predictions.py +0 -0
  52. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/day_night.py +0 -0
  53. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/forecast.py +0 -0
  54. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/health_activities.py +0 -0
  55. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/hourly_predictions.py +0 -0
  56. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/label_value.py +0 -0
  57. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/moon_phase.py +0 -0
  58. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/precipitation.py +0 -0
  59. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/search.py +0 -0
  60. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/sunrise_sunset.py +0 -0
  61. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/temperature_hight_low.py +0 -0
  62. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/timestamp.py +0 -0
  63. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/today_details.py +0 -0
  64. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/uv_index.py +0 -0
  65. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/domain/wind.py +0 -0
  66. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_aqi_service.py +0 -0
  67. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_current_conditions_service.py +0 -0
  68. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_daily_forecast_oldstyle_service.py +0 -0
  69. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_health_activities_service.py +0 -0
  70. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_hourly_forecast_oldstyle_service.py +0 -0
  71. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_hourly_forecast_service.py +0 -0
  72. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/extract_temperature_service.py +0 -0
  73. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/read_weather_service.py +0 -0
  74. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/service/search_location_service.py +0 -0
  75. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/usecase/use_case.py +0 -0
  76. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber/weathergrabber_application.py +0 -0
  77. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber.egg-info/SOURCES.txt +0 -0
  78. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber.egg-info/dependency_links.txt +0 -0
  79. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber.egg-info/entry_points.txt +0 -0
  80. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber.egg-info/requires.txt +0 -0
  81. {weathergrabber-0.0.8b5 → weathergrabber-0.0.8b7}/weathergrabber.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weathergrabber
3
- Version: 0.0.8b5
3
+ Version: 0.0.8b7
4
4
  Summary: A grabber for weather.com data with various output formats.
5
5
  Author-email: Carlos Anselmo Mendes Junior <cjuniorfox@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "weathergrabber"
3
- version = "0.0.8b5"
3
+ version = "0.0.8b7"
4
4
  description = "A grabber for weather.com data with various output formats."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -4,7 +4,7 @@ from .core import main
4
4
  from .cli import main_cli
5
5
 
6
6
  __all__ = ["main", "main_cli"]
7
- __version__ = "0.0.8b5"
7
+ __version__ = "0.0.8b7"
8
8
 
9
9
  def get_version():
10
10
  return __version__
@@ -97,7 +97,7 @@ class WaybarTTY:
97
97
  f"{d['title']}"
98
98
  f"{'\t\t' if len(d['title']) < 5 else '\t'}"
99
99
  f"{d['high_low']}"
100
- f"{'\t\t' if len(d['high_low']) < 32 else '\t'}"
100
+ f"{'\t\t' if len(d['high_low']) < 33 else '\t'}"
101
101
  f"{d['icon']}\t"
102
102
  f"{rain_icon} {d['precipitation']}"
103
103
  for d in daily_predictions_format
@@ -39,7 +39,8 @@ class MoonPhaseEnum(Enum):
39
39
  PHASE_27 = ("phase-27", "\uf186", "🌘")
40
40
  PHASE_28 = ("phase-28", "\uf186", "🌘")
41
41
  PHASE_29 = ("phase-29", "\uf186", "🌑")
42
- DEFAULT = ("default", "\uf186", "🌑")
42
+ PHASE_30 = ("phase-30", "\uf186", "🌑")
43
+
43
44
 
44
45
  def __init__(self, name: str, fa_icon: str, emoji_icon: str):
45
46
  self._name = name
@@ -63,4 +64,4 @@ class MoonPhaseEnum(Enum):
63
64
  for item in MoonPhaseEnum:
64
65
  if item._name == name:
65
66
  return item
66
- return None
67
+ raise ValueError(f'WeatherIconEnum: No icon found for name "{name}"')
@@ -39,6 +39,7 @@ class WeatherIconEnum(Enum):
39
39
  SUNNY = ('sunny', chr(0xF0599), '☀️')
40
40
  SUNRISE = ('sunrise', '\ue34c', '🌅')
41
41
  SUNSET = ('sunset', '\ue34d', '🌇')
42
+ STRONG_STORMS = ('strong-storms', '\uf01e', '🌩️')
42
43
  THUNDERSTORMS = ('thunderstorms', '\uf0e7', '⛈️')
43
44
  VISIBILITY = ('visibility', '\uf06e', '👁️')
44
45
  WIND = ('wind', chr(0xf059d), '🌪️')
@@ -36,7 +36,7 @@ class ExtractDailyForecastService:
36
36
 
37
37
  self.logger.debug("Extracted %s register(s)...",len(details))
38
38
 
39
- daily_predictions = [
39
+ daily_predictions = [
40
40
  DailyPredictions(
41
41
  title=item["title"],
42
42
  high_low = TemperatureHighLow.from_string(item["high-low"]),
@@ -17,6 +17,7 @@ class ExtractTodayDetailsService:
17
17
  self.logger.debug("Extracting today's details...")
18
18
 
19
19
  today_details_data = weather_data.find("div#todayDetails")
20
+
20
21
  feelslike = PyQuery(today_details_data).find("div[data-testid='FeelsLikeSection'] span")
21
22
  sunrise_sunset = PyQuery(today_details_data).find("div[data-testid='sunriseSunsetContainer'] div p[class*='TwcSunChart']")
22
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weathergrabber
3
- Version: 0.0.8b5
3
+ Version: 0.0.8b7
4
4
  Summary: A grabber for weather.com data with various output formats.
5
5
  Author-email: Carlos Anselmo Mendes Junior <cjuniorfox@gmail.com>
6
6
  License: MIT