Skip to main content

a library for your weathery needs.

Project description

Weather4Py

a weather library for python to get the weather of a location or set of coordinates, with the ability to save to a json. By default it's C, and it can be changed to F temperature measuring system.

Github repository for Weather4Py

Here's some examples to how to use the library.

from WeatherPy import WeatherMan

# takes an input of metric(C)/imperial(F)
WeatherMan("owo").set_measurement("metric")

# to get the region of a location
print(WeatherMan("38.8,37.7").region)
# result: Kuluncak/Malatya, Turkey

# to get the weather of a location
print(WeatherMan("israel").weather)
# result: Sunny

# to get the temperature of a location
print(WeatherMan("texas").temperature)
# result: 30

# to get the humidity of a location
print(WeatherMan("newyork").humidity)
# result: 64%

# to reobtain infromation about a location.
WeatherMan("owo").obtain_information()

# to save the results to a folder in json format
WeatherMan("38.8,37.7").save_to_file("output.json")

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

Weather4Py-0.1.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

Weather4Py-0.1.4-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

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