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
-
From pip
pip install weathora
-
Clone the repository:
git clone https://github.com/bhatishan2003/weathora cd weathora
Create and activate a virtual environment:
-
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
- Go to OpenWeather API.
- Sign up (or log in if you already have an account).
Step 2: Get Your API Key
- Navigate to your API Keys section in the OpenWeather dashboard.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57a09370473feec5be669cf12073cb2069310f20727b43bfae4d7e93f85eba5
|
|
| MD5 |
859ec72159b4d7116a340572709e532c
|
|
| BLAKE2b-256 |
ebb7894c767c660542c530237f1325b58dff08697f9574ccb506ece3888a46ba
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc1bd17453d63e9843ec43d96cc534dabb5def3cc871afa2a2eebf6e5a0d466a
|
|
| MD5 |
e7b3ed49f76b94026ff421a90710ef66
|
|
| BLAKE2b-256 |
c37d44d3883c3ca5fb6b87ea34245bcdff73426387b3004e5e7dd4866c5bad88
|