File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33"""
44
55from sample_python_app .core .config import settings
6+ from sample_python_app .core .data_loader import fetch_astronomical_data_from_api
67from sample_python_app .core .display import display_astronomical_data
78from sample_python_app .core .logging import setup_logger
8- from sample_python_app .core .data_loader import fetch_astronomical_data_from_api
99
1010__all__ = [
1111 "settings" ,
Original file line number Diff line number Diff line change 22Handles loading and validating weather.gov astronomical data from file.
33"""
44
5+ import httpx
56from pydantic import ValidationError
67
7- from sample_python_app .core import setup_logger
8+ from sample_python_app .core . logging import setup_logger
89from sample_python_app .models import WeatherGovFeature
9- import httpx
1010
1111
1212def fetch_astronomical_data_from_api (lat : float , lon : float ):
Original file line number Diff line number Diff line change 55from pyfiglet import Figlet
66from rich .console import Console
77
8- from sample_python_app .core import settings , setup_logger
8+ from sample_python_app .core .config import settings
9+ from sample_python_app .core .logging import setup_logger
910
1011
1112def display_astronomical_data (astro ):
Original file line number Diff line number Diff line change 33Orchestrates loading and displaying astronomical data.
44"""
55
6- import httpx
76import json
7+
8+ import httpx
89from pydantic import ValidationError
10+
911from sample_python_app .core import (
1012 display_astronomical_data ,
1113 fetch_astronomical_data_from_api ,
You can’t perform that action at this time.
0 commit comments