A simple weather tool.
Project description
Pwea
Pwea is a simple weather tool written in Python, utilizing the Weather API to source current weather information.
Pwea uses the requests and rich libraries to retrieve and display weather data.
How it works
Pass a desired location to pwea
to retrieve a readout of the current weather conditions.
Use it like this:
pwea springfield MA
Or, pass -t forecast
to view the forecast.
Unit of measurement defaults to metric. Pass -u imperial
or --unit imperial
to view in imperial.
Installation
You can install pwea from PyPi, or build it from source.
Pypi
pip install pwea
Building from source
Clone the repository:
git clone https://gitlab.com/jeffreybarfield/pwea.git
Install using setuptools
:
python3 setup.py install
Credit
I created this tool to educate myself on the rich library. I was originally inspired by the pwy project.
License
Copyright © 2021 Jeff Barfield.
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
File details
Details for the file pwea-0.3.tar.gz
.
File metadata
- Download URL: pwea-0.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab0cb81348595947fb8ec3c03c440c6844c9d3d2465d0d51376a374c30e8d2c3 |
|
MD5 | f3302ca08ec4115844064925ed5ce297 |
|
BLAKE2b-256 | 17cdf982dfe6e72e1eaea61f85dda9a3623f75299bb30957578defd77bb17020 |
File details
Details for the file pwea-0.3-py3.9.egg
.
File metadata
- Download URL: pwea-0.3-py3.9.egg
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ae4d6c526b5ec02e80d7b2f5aedf528e35f265bd177cbf6cae2c4c4ef3b15c |
|
MD5 | e8f8e1b180942d954cf4be670c5fa44a |
|
BLAKE2b-256 | 4bf0cf7f107c6b1e4504a2353a42cd92cc956fe9fb27a5c7d25d7ed6aa241c2e |