A command-line tool to check the weather.
Project description
wea is an ASCII decorated command-line program that shows you a weather report in your terminal, for any location in the world and in multiple languages.
Features
- Current weather report.
- Forecast for the next 5 days.
- Several weather conditions:
- Temperature and apparent temperature.
- Wind direction and speed.
- Atmospheric pressure.
- Rainfall rate and probability of precipitation.
- Visibility distance.
- Metric and imperial unit system.
- Multilingual support.
Dependencies
- Python >= 3.6
- pip
- wea also requires a free API key for OpenWeather. You can find yours here, after signin in.
Instalation
Simply install wea by using pip:
pip install wea-clt
Usage
You can see all available commands typing
wea -h
which displays the following help message:
usage: wea.exe [-h] [-c | -f | -l [...] | -u [default | metric | imperial] | --lang | -k | --config]
options:
-h, --help show this help message and exit
-c, --current Shows current weather for the set location.
-f, --forecast Shows weather forecast for the set location.
-l [ ...], --location [ ...]
Sets a location.
-u [default | metric | imperial], --units [default | metric | imperial]
Changes unit system
--lang Sets new language.
-k , --key Sets the OpenWeather API key.
--config Shows current user configuration path and content.
If no arguments were provided, wea shows current and weather forecast for the location set in the user's configuration file.
You can also see a weather report for a location without changing the configuration file. Try:
wea London -c
License
wea is released under the MIT License.
This project uses source code from the files
translations.py
from https://github.com/chubin/wttr.in, licensed under the Apache License 2.0.ascii-art-table.go
from https://github.com/schachmat/wego, Copyright (c) 2014-2017, teichm@in.tum.de, licensed under the ISC License.
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
wea-clt-0.0.3.tar.gz
(18.3 kB
view hashes)
Built Distribution
wea_clt-0.0.3-py3-none-any.whl
(19.2 kB
view hashes)