Skip to main content

Python library for weather information.

Project description

Project Portfolio: https://github.com/calebyhan/CalebHan

weather-ch

Python library for weather information. Docker library for WeatherAPI. This project is unaffiliated with the official company.

Data from WeatherAPI.

Installation


Use the package manager pip to install weather-ch.

pip install weather-ch

Usage


import weather



weatherAPI = weather.API("API KEY HERE")



# returns current weather in London

weatherAPI.current("London")



# returns 3 day forecast of London

weatherAPI.forecast("London")

Documentation


weather.API(api_key)

API Key

weather.current(q, aqi="no", lang=-1)

Realtime API

weather.forecast(q, days=3, alerts="no", aqi="no", lang=-1)

Forecast API

weather.history(q, dt=-1, lang=-1)

History API

weather.future(q, dt=-1, lang=-1)

Future API

weather.ip(q, lang=-1)

IP Lookup API

weather.astro(q, dt=-1, lang=-1)

Astronomy API

weather.sports(q, lang=-1)

Sports API

weather.timezone(q, lang=-1)

Time Zone API

Contributing


Pull requests are welcome. For major changes, please open an issue first

to discuss what you would like to change.

Please make sure to update tests as appropriate.

License


MIT

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

weather-ch-0.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

weather_ch-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file weather-ch-0.0.4.tar.gz.

File metadata

  • Download URL: weather-ch-0.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for weather-ch-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3fb9634a4336d4e6937b976bb492d7ef076a8ec58bc39dd0c72b49880d34e8c8
MD5 dbbdabed8d685de2d0f9bbf939a0b47d
BLAKE2b-256 c89740547f7a30f52ec8061524c9895f5d2f1d1b379f28115eec96cae472fcb1

See more details on using hashes here.

File details

Details for the file weather_ch-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: weather_ch-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for weather_ch-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e7999b251f7958965808e7442789bb191a38f9a82323d7f32003c254d00e5355
MD5 4699a278e6049dc0361b3a46fd0b7d69
BLAKE2b-256 78557c32eef28babed92f59f7bc06c03111aa99c45c200aae192d53f3ff22bfb

See more details on using hashes here.

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