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)
Built Distribution
Close
Hashes for Weather4Py-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a20d9d0d61605f587e53c41be7eefeae881956d1c8baf6a9ddd36c3793d41b |
|
MD5 | aa34e34118d5a06c1ba8f2f8a66d43d1 |
|
BLAKE2b-256 | ce68dfe5217fc45b2fbc4bd42d01bd23c992300f4bdc457a6c699c8f1699b40d |