Python weather-app

Open-source Python projects categorized as weather-app

Python weather-app Projects

weather-app
  1. wttr.in

    :partly_sunny: The right way to check the weather

    Project mention: Your first MCP Server (quick) | dev.to | 2025-05-07

    # FastMCP is all what we need from mcp dependency from mcp.server.fastmcp import FastMCP # We will use this lib to request the weather from wttr.in import urllib # Now lets create an MCP Server mcp = FastMCP("Weather") # Now let's register a tool with this decorator, @mcp.tool() def get_weather(city: str) -> str: # define a function with city argument # And now we will docuement this cuntion using Python Docstrings # FastMCP will add this documentation to the LLM so it can decide when to use # this tool and how to use it. """ Get the current weather for a given city Args: city (str): The name of the city Returns: str: The current weather in the city, for example, "Sunny +20°C" """ try: # URL-encode the city name. url_encoded_city = urllib.parse.quote_plus(city) # Prepare wittr url request wttr_url = f'https://wttr.in/{url_encoded_city}?format=%C+%t' # Request weather response = urllib.request.urlopen(wttr_url).read() return response.decode('utf-8') except Exception as e: # If something goes wrong we let the LLM know about it return f"Error fetching weather data" # And here we add the main entry point for the server if __name__ == "__main__": # Here we initialize and run the server # We select stdio transport for process-based communication. # This allow a process (the client) to communicate with its parent # process through pipes using standard input/output. mcp.run(transport='stdio')

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python weather-app discussion

Log in or Post with

Python weather-app related posts

  • Show HN: Display weather for up to 3 cities for comparison inside Neovim

    2 projects | news.ycombinator.com | 10 Apr 2025
  • Boost Your Workflow: Essential Shell Scripts for Everyday Tasks

    1 project | dev.to | 23 Oct 2024
  • What is Asynchronous Code? How to Use It in Python to Speed Up Your Code Learn by Building a Weather App! ☀️🌦️

    1 project | dev.to | 3 Oct 2024
  • Weather from the Command Line

    1 project | news.ycombinator.com | 31 Aug 2024
  • Wttr.in Is Down

    1 project | news.ycombinator.com | 11 Dec 2023
  • Meet wttrbarpy! a highly customizable weather module for Waybar inspired from wttrbar using wttr.in

    2 projects | /r/swaywm | 8 Dec 2023
  • Ask HN: Favourite low-tech/plain HTML websites?

    1 project | news.ycombinator.com | 7 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jul 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

# Project Stars
1 wttr.in 26,454

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?