python-pirateweather 1.1__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_pirateweather-1.1/python_pirateweather.egg-info → python_pirateweather-1.1.2}/PKG-INFO +5 -3
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/README.md +1 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/pirateweather/api.py +3 -1
- {python_pirateweather-1.1 → python_pirateweather-1.1.2/python_pirateweather.egg-info}/PKG-INFO +5 -3
- python_pirateweather-1.1.2/python_pirateweather.egg-info/requires.txt +1 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/setup.py +2 -2
- python_pirateweather-1.1/python_pirateweather.egg-info/requires.txt +0 -1
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/LICENSE.txt +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/MANIFEST.in +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/pirateweather/__init__.py +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/pirateweather/models.py +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/pirateweather/utils.py +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/python_pirateweather.egg-info/SOURCES.txt +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/python_pirateweather.egg-info/dependency_links.txt +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/python_pirateweather.egg-info/top_level.txt +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/setup.cfg +0 -0
- {python_pirateweather-1.1 → python_pirateweather-1.1.2}/tests/test_pirateweather.py +0 -0
{python_pirateweather-1.1/python_pirateweather.egg-info → python_pirateweather-1.1.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-pirateweather
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A thin Python Wrapper for the Pirate Weather API
|
|
5
5
|
Home-page: https://github.com/cloneofghosts/python-pirate-weather
|
|
6
6
|
Author: cloneofghosts
|
|
@@ -8,13 +8,14 @@ License: BSD 2-clause
|
|
|
8
8
|
Keywords: weather API wrapper pirateweather location
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.txt
|
|
11
|
-
Requires-Dist: requests==2.32.
|
|
11
|
+
Requires-Dist: requests==2.32.4
|
|
12
12
|
Dynamic: author
|
|
13
13
|
Dynamic: description
|
|
14
14
|
Dynamic: description-content-type
|
|
15
15
|
Dynamic: home-page
|
|
16
16
|
Dynamic: keywords
|
|
17
17
|
Dynamic: license
|
|
18
|
+
Dynamic: license-file
|
|
18
19
|
Dynamic: requires-dist
|
|
19
20
|
Dynamic: summary
|
|
20
21
|
|
|
@@ -92,6 +93,7 @@ Parameters:
|
|
|
92
93
|
- **lazy** - (optional) Defaults to `false`. If `true` the function will request the json data as it is needed. Results in more requests, but maybe a faster response time.
|
|
93
94
|
- **extend** - (optional) Defaults to `false`. If `"hourly"` the API will hourly data for 168 hours instead of the standard 48 hours.
|
|
94
95
|
- **version** - (optional) Defaults to `1`. If set to `2` the API will return fields that were not part of the Dark Sky API.
|
|
96
|
+
- **icon** - (optional) Defaults to `darksky`. If set to `pirate` the API will return icons which aren't apart of the default Dark Sky icon set.
|
|
95
97
|
- **callback** - (optional) Pass a function to be used as a callback. If used, load_forecast() will use an asynchronous HTTP call and **will not return the forecast object directly**, instead it will be passed to the callback function. Make sure it can accept it.
|
|
96
98
|
|
|
97
99
|
----------------------------------------------------
|
|
@@ -72,6 +72,7 @@ Parameters:
|
|
|
72
72
|
- **lazy** - (optional) Defaults to `false`. If `true` the function will request the json data as it is needed. Results in more requests, but maybe a faster response time.
|
|
73
73
|
- **extend** - (optional) Defaults to `false`. If `"hourly"` the API will hourly data for 168 hours instead of the standard 48 hours.
|
|
74
74
|
- **version** - (optional) Defaults to `1`. If set to `2` the API will return fields that were not part of the Dark Sky API.
|
|
75
|
+
- **icon** - (optional) Defaults to `darksky`. If set to `pirate` the API will return icons which aren't apart of the default Dark Sky icon set.
|
|
75
76
|
- **callback** - (optional) Pass a function to be used as a callback. If used, load_forecast() will use an asynchronous HTTP call and **will not return the forecast object directly**, instead it will be passed to the callback function. Make sure it can accept it.
|
|
76
77
|
|
|
77
78
|
----------------------------------------------------
|
|
@@ -18,6 +18,7 @@ def load_forecast(
|
|
|
18
18
|
callback=None,
|
|
19
19
|
extend=None,
|
|
20
20
|
version=1,
|
|
21
|
+
icon="darksky",
|
|
21
22
|
):
|
|
22
23
|
"""Build the request url and loads some or all of the needed json depending on lazy is True.
|
|
23
24
|
|
|
@@ -35,12 +36,13 @@ def load_forecast(
|
|
|
35
36
|
extend: If set to hourly the API will hourly data for 168 hours instead
|
|
36
37
|
of the standard 48 hours.
|
|
37
38
|
version: If set to 2 the API will return fields that were not part of the Dark Sky API.
|
|
39
|
+
icon: If set to pirate the API will return icons which aren't apart of the default Dark Sky icon set
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
if time is None:
|
|
41
43
|
url = (
|
|
42
44
|
f"https://api.pirateweather.net/forecast/{key}/{lat},{lng}"
|
|
43
|
-
f"?units={units}&lang={lang}&extend={extend}&version={version}"
|
|
45
|
+
f"?units={units}&lang={lang}&extend={extend}&version={version}&icon={icon}"
|
|
44
46
|
)
|
|
45
47
|
else:
|
|
46
48
|
url_time = time.replace(
|
{python_pirateweather-1.1 → python_pirateweather-1.1.2/python_pirateweather.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-pirateweather
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A thin Python Wrapper for the Pirate Weather API
|
|
5
5
|
Home-page: https://github.com/cloneofghosts/python-pirate-weather
|
|
6
6
|
Author: cloneofghosts
|
|
@@ -8,13 +8,14 @@ License: BSD 2-clause
|
|
|
8
8
|
Keywords: weather API wrapper pirateweather location
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.txt
|
|
11
|
-
Requires-Dist: requests==2.32.
|
|
11
|
+
Requires-Dist: requests==2.32.4
|
|
12
12
|
Dynamic: author
|
|
13
13
|
Dynamic: description
|
|
14
14
|
Dynamic: description-content-type
|
|
15
15
|
Dynamic: home-page
|
|
16
16
|
Dynamic: keywords
|
|
17
17
|
Dynamic: license
|
|
18
|
+
Dynamic: license-file
|
|
18
19
|
Dynamic: requires-dist
|
|
19
20
|
Dynamic: summary
|
|
20
21
|
|
|
@@ -92,6 +93,7 @@ Parameters:
|
|
|
92
93
|
- **lazy** - (optional) Defaults to `false`. If `true` the function will request the json data as it is needed. Results in more requests, but maybe a faster response time.
|
|
93
94
|
- **extend** - (optional) Defaults to `false`. If `"hourly"` the API will hourly data for 168 hours instead of the standard 48 hours.
|
|
94
95
|
- **version** - (optional) Defaults to `1`. If set to `2` the API will return fields that were not part of the Dark Sky API.
|
|
96
|
+
- **icon** - (optional) Defaults to `darksky`. If set to `pirate` the API will return icons which aren't apart of the default Dark Sky icon set.
|
|
95
97
|
- **callback** - (optional) Pass a function to be used as a callback. If used, load_forecast() will use an asynchronous HTTP call and **will not return the forecast object directly**, instead it will be passed to the callback function. Make sure it can accept it.
|
|
96
98
|
|
|
97
99
|
----------------------------------------------------
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests==2.32.4
|
|
@@ -20,7 +20,7 @@ def read(fname):
|
|
|
20
20
|
|
|
21
21
|
setup(
|
|
22
22
|
name="python-pirateweather",
|
|
23
|
-
version="1.1",
|
|
23
|
+
version="1.1.2",
|
|
24
24
|
author="cloneofghosts",
|
|
25
25
|
description=("A thin Python Wrapper for the Pirate Weather API"),
|
|
26
26
|
license="BSD 2-clause",
|
|
@@ -30,5 +30,5 @@ setup(
|
|
|
30
30
|
package_data={"pirateweather": ["LICENSE.txt", "README.md"]},
|
|
31
31
|
long_description=open("README.md").read(),
|
|
32
32
|
long_description_content_type="text/markdown",
|
|
33
|
-
install_requires=["requests==2.32.
|
|
33
|
+
install_requires=["requests==2.32.4"],
|
|
34
34
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
requests==2.32.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_pirateweather-1.1 → python_pirateweather-1.1.2}/python_pirateweather.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_pirateweather-1.1 → python_pirateweather-1.1.2}/python_pirateweather.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|