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.

PyPI version Python Versions License CI Build and Deploy Sphinx Docs

Table of Contents


Installation

  • From pip

    pip install weathora
    
  • 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.3.tar.gz (6.1 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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weathora-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for weathora-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d57a09370473feec5be669cf12073cb2069310f20727b43bfae4d7e93f85eba5
MD5 859ec72159b4d7116a340572709e532c
BLAKE2b-256 ebb7894c767c660542c530237f1325b58dff08697f9574ccb506ece3888a46ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weathora-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for weathora-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1bd17453d63e9843ec43d96cc534dabb5def3cc871afa2a2eebf6e5a0d466a
MD5 e7b3ed49f76b94026ff421a90710ef66
BLAKE2b-256 c37d44d3883c3ca5fb6b87ea34245bcdff73426387b3004e5e7dd4866c5bad88

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