Skip to main content

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

springfield

Or, pass -t forecast to view the forecast.

springfield

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


Download files

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

Source Distribution

pwea-0.3.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

pwea-0.3-py3.9.egg (18.9 kB view hashes)

Uploaded Source

Supported by

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