Skip to main content

A Python CLI tool to fetch live weather data using OpenWeather API

Project description

Weathora

A simple Python CLI tool to fetch live weather data from any city using the OpenWeather API.

Table of Contents


Installation

  • Clone the repository:

    git clone https://github.com/bhatishan2003/weathora
    cd weathora
    

Create and activate a virtual environment:

  1. Create a Virtual Environment [Optional, but recommended]

    Run the following command to create a virtual environment:

    python3 -m venv .venv
    
  • Activate:

    • Windows (PowerShell):

      .venv\Scripts\activate
      
    • Linux/Mac (Bash):

      source .venv/bin/activate
      
  • Deactivate:

    deactivate
    
  • Install the package:

    pip install .
    
  • For development (editable mode):

    pip install -e .
    

Setup API Key 🔑

To use this project, you’ll need an API key from OpenWeather.

Step 1: Create an Account

  1. Go to OpenWeather API.
  2. Sign up (or log in if you already have an account).

Step 2: Get Your API Key

  1. Navigate to your API Keys section in the OpenWeather dashboard.
  2. Copy your API Key.

Step 3: Store the API Key

Depending on your shell, use one of the following commands:

🔹 PowerShell

$Env:OPENWEATHER_API_KEY = "YOUR_SECRET_KEY"

🔹Bash

export OPENWEATHER_API_KEY="YOUR_SECRET_KEY"

Usage

Command Line Usage

  • Following commands should be entered to get weather information.

    weathora --city "Delhi"
    weathora --city "London"
    weathora --city "Jammu"
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weathora-0.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weathora-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file weathora-0.0.1.tar.gz.

File metadata

  • Download URL: weathora-0.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for weathora-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c8c7992aeca0256d81a79be473cb4e3bef66b9569134284095e357163281125e
MD5 d0a7fd1d9beb36ebb2d339170f07b392
BLAKE2b-256 a80a28a3ce123748ebe4792c0c6e09fe17f56855447a3d95d9c0bc5ec8517878

See more details on using hashes here.

File details

Details for the file weathora-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: weathora-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for weathora-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61933c8cd5c4702a216d4353219c49f487fd9ae10d7d9e69ed280d9b2175d4d2
MD5 30f3bb2175fbc5a22469f0c1e8886fef
BLAKE2b-256 53612b1ffd7dd622bf34d63490e23362374b22064438d27007d6ccc0c739fd41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page