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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Weather4Py-0.1.4.tar.gz.
File metadata
- Download URL: Weather4Py-0.1.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c0a439be29a6785230f797988716c4e0ad67e03c8adb57a4aabe35198a4c031
|
|
| MD5 |
cbf8d83fd07ba4ba212589b36259cf28
|
|
| BLAKE2b-256 |
b8033d02b404a9fb65018572ded1a590a5a850e7eb7f2fe7da94cdbe5d8e7515
|
File details
Details for the file Weather4Py-0.1.4-py3-none-any.whl.
File metadata
- Download URL: Weather4Py-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51a20d9d0d61605f587e53c41be7eefeae881956d1c8baf6a9ddd36c3793d41b
|
|
| MD5 |
aa34e34118d5a06c1ba8f2f8a66d43d1
|
|
| BLAKE2b-256 |
ce68dfe5217fc45b2fbc4bd42d01bd23c992300f4bdc457a6c699c8f1699b40d
|