Skip to main content

Weather CLI

This is a small weather CLI I made in python using the OpenWeatherMap API

Examples

London Boston UK

This also works with separate states (with the --state argument), but I couldn't think of any examples to use this with

Installation

sudo pip install openweathercli

Removal

sudo pip uninstall openweathercli

OpenWeatherMap API key

Go to https://openweathermap.org/ and press Sign In Then, once you have signed back in (or created an account), you will see an interface such as this one Home Along the top, press API Keys API Keys And generate a new key like this (unless you want to use an existing API key)New Key Then a new key will be generated and there will be a box that looks somewhat like this Key Copy the text within the box, and then run the script. When you run it for the first time, it will prompt you like this:

Prompt

Download files

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

Source Distribution

openweathercli-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file openweathercli-1.0.1.tar.gz.

File metadata

  • Download URL: openweathercli-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for openweathercli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a2500e80d34eed42be47a9757594dc4c3039e0411dd3d44b2467ea8472d0a624
MD5 aed1d0fd8b7b6ecd5719dfa7550904b4
BLAKE2b-256 7acb1dfcbc393acec7708361cb18282bbbb403bb9f842c6d40f53a4622f58ab8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0.post2

1 file

1.0.0.post1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page