weathergrabber 0.0.8b4__tar.gz → 0.0.8b5__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.8b4/weathergrabber.egg-info → weathergrabber-0.0.8b5}/PKG-INFO +1 -1
  2. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/pyproject.toml +1 -1
  3. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/__init__.py +1 -1
  4. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/adapter/tty/console_tty.py +2 -2
  5. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/adapter/tty/waybar_tty.py +5 -5
  6. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/moon_phase_enum.py +1 -0
  7. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/weather_icon_enum.py +1 -0
  8. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5/weathergrabber.egg-info}/PKG-INFO +1 -1
  9. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/LICENSE +0 -0
  10. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/README.md +0 -0
  11. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/setup.cfg +0 -0
  12. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/tests/test_cli.py +0 -0
  13. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/tests/test_cli_version.py +0 -0
  14. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/tests/test_core.py +0 -0
  15. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/tests/test_main.py +0 -0
  16. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/__main__.py +0 -0
  17. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/adapter/client/weather_api.py +0 -0
  18. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/adapter/client/weather_search_api.py +0 -0
  19. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/adapter/tty/json_tty.py +0 -0
  20. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/cli.py +0 -0
  21. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/core.py +0 -0
  22. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/icon_enum.py +0 -0
  23. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/air_quality_index_mapper.py +0 -0
  24. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/city_location_mapper.py +0 -0
  25. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/color_mapper.py +0 -0
  26. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/current_conditions_mapper.py +0 -0
  27. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/daily_predictions_mapper.py +0 -0
  28. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/day_night_mapper.py +0 -0
  29. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/forecast_mapper.py +0 -0
  30. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/health_activities_mapper.py +0 -0
  31. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/hourly_predictions_mapper.py +0 -0
  32. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/label_value_mapper.py +0 -0
  33. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/moon_phase_mapper.py +0 -0
  34. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/precipitation_mapper.py +0 -0
  35. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/search_mapper.py +0 -0
  36. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/sunrise_sunset_mapper.py +0 -0
  37. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/temperature_high_low_mapper.py +0 -0
  38. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/timestamp_mapper.py +0 -0
  39. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/today_details_mapper.py +0 -0
  40. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/uv_index_mapper.py +0 -0
  41. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/weather_icon_enum_mapper.py +0 -0
  42. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/mapper/wind_mapper.py +0 -0
  43. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/output_enum.py +0 -0
  44. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/adapter/params.py +0 -0
  45. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/air_quality_index.py +0 -0
  46. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/city_location.py +0 -0
  47. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/color.py +0 -0
  48. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/current_conditions.py +0 -0
  49. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/daily_predictions.py +0 -0
  50. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/day_night.py +0 -0
  51. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/forecast.py +0 -0
  52. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/health_activities.py +0 -0
  53. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/hourly_predictions.py +0 -0
  54. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/label_value.py +0 -0
  55. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/moon_phase.py +0 -0
  56. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/precipitation.py +0 -0
  57. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/search.py +0 -0
  58. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/sunrise_sunset.py +0 -0
  59. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/temperature_hight_low.py +0 -0
  60. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/timestamp.py +0 -0
  61. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/today_details.py +0 -0
  62. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/uv_index.py +0 -0
  63. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/domain/wind.py +0 -0
  64. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_aqi_service.py +0 -0
  65. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_current_conditions_service.py +0 -0
  66. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_daily_forecast_oldstyle_service.py +0 -0
  67. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_daily_forecast_service.py +0 -0
  68. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_health_activities_service.py +0 -0
  69. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_hourly_forecast_oldstyle_service.py +0 -0
  70. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_hourly_forecast_service.py +0 -0
  71. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_temperature_service.py +0 -0
  72. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/extract_today_details_service.py +0 -0
  73. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/read_weather_service.py +0 -0
  74. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/service/search_location_service.py +0 -0
  75. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/usecase/use_case.py +0 -0
  76. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber/weathergrabber_application.py +0 -0
  77. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber.egg-info/SOURCES.txt +0 -0
  78. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber.egg-info/dependency_links.txt +0 -0
  79. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber.egg-info/entry_points.txt +0 -0
  80. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/weathergrabber.egg-info/requires.txt +0 -0
  81. {weathergrabber-0.0.8b4 → weathergrabber-0.0.8b5}/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.8b4
3
+ Version: 0.0.8b5
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.8b4"
3
+ version = "0.0.8b5"
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.8b4"
7
+ __version__ = "0.0.8b5"
8
8
 
9
9
  def get_version():
10
10
  return __version__
@@ -82,7 +82,7 @@ class ConsoleTTY:
82
82
  # Hourly predictions and daily predictions
83
83
  hourly_predictions = [
84
84
  f"{h['title']}"
85
- f"{'\t' if len(h['title']) < 3 else ''}\t"
85
+ f"{'\t\t' if len(h['title']) < 3 else '\t'}"
86
86
  f"{h['temperature']}"
87
87
  "\t"
88
88
  f"{h['icon']}\t"
@@ -92,7 +92,7 @@ class ConsoleTTY:
92
92
 
93
93
  daily_predictions = [
94
94
  f"{d['title']}"
95
- f"{'\t' if len(d['title']) < 3 else ''}\t"
95
+ f"{'\t\t' if len(d['title']) < 3 else '\t'}"
96
96
  f"{d['high_low']}"
97
97
  f"\t"
98
98
  f"{d['icon']}\t"
@@ -67,7 +67,7 @@ class WaybarTTY:
67
67
  aqi_value = forecast.air_quality_index.value
68
68
 
69
69
  hourly_predictions_format = [{
70
- 'title': h.title if len(h.title) < 10 else h.title[:9] + '.',
70
+ 'title': h.title if len(h.title) < 9 else h.title[:8] + '.',
71
71
  'temperature' : h.temperature,
72
72
  'icon': h.icon.fa_icon if is_fa else h.icon.emoji_icon,
73
73
  'precipitation': f"{h.precipitation.percentage if h.precipitation.percentage else ''}"
@@ -75,7 +75,7 @@ class WaybarTTY:
75
75
 
76
76
  daily_predictions_format = [
77
77
  {
78
- 'title': d.title if len(d.title) < 10 else d.title[:9] + '.',
78
+ 'title': d.title if len(d.title) < 9 else d.title[:8] + '.',
79
79
  'high_low': f"{d.high_low.high}/<span size='small'>{d.high_low.low}</span>",
80
80
  'icon': d.icon.fa_icon if is_fa else d.icon.emoji_icon,
81
81
  'precipitation': f"{d.precipitation.percentage}"
@@ -85,7 +85,7 @@ class WaybarTTY:
85
85
  # Hourly predictions and daily predictions
86
86
  hourly_predictions = [
87
87
  f"{h['title']}"
88
- f"{'\t\t' if len(h['title']) < 4 else '\t'}"
88
+ f"{'\t\t' if len(h['title']) < 5 else '\t'}"
89
89
  f"{h['temperature']}"
90
90
  "\t\t"
91
91
  f"{h['icon']}\t"
@@ -95,9 +95,9 @@ class WaybarTTY:
95
95
 
96
96
  daily_predictions = [
97
97
  f"{d['title']}"
98
- f"\t{'\t' if len(d['title']) < 6 else ' '}"
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']) < 33 else ''}"
100
+ f"{'\t\t' if len(d['high_low']) < 32 else '\t'}"
101
101
  f"{d['icon']}\t"
102
102
  f"{rain_icon} {d['precipitation']}"
103
103
  for d in daily_predictions_format
@@ -38,6 +38,7 @@ class MoonPhaseEnum(Enum):
38
38
  PHASE_26 = ("phase-26", "\uf186", "🌘")
39
39
  PHASE_27 = ("phase-27", "\uf186", "🌘")
40
40
  PHASE_28 = ("phase-28", "\uf186", "🌘")
41
+ PHASE_29 = ("phase-29", "\uf186", "🌑")
41
42
  DEFAULT = ("default", "\uf186", "🌑")
42
43
 
43
44
  def __init__(self, name: str, fa_icon: str, emoji_icon: str):
@@ -10,6 +10,7 @@ class WeatherIconEnum(Enum):
10
10
  DRIZZLE = ('drizzle', '\uf0e9', '🌦️')
11
11
  FEEL = ('feel', '\uf2c9', '🥵')
12
12
  FOGGY = ('foggy', '\uf74e', '🌫️')
13
+ HEAVY_RAIN = ('heavy-rain', '\uf0e9', '🌧️')
13
14
  HUMIDITY = ('humidity', '\uf043', '💧')
14
15
  ISOLATED_THUNDERSTORMS = ('isolated-thunderstorms', chr(0x26C8), '⛈️')
15
16
  MOSTLY_CLEAR_DAY = ('mostly-clear-day', chr(0xF0599), '☀️')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weathergrabber
3
- Version: 0.0.8b4
3
+ Version: 0.0.8b5
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