blizzardapi2 2.1.6__tar.gz → 2.1.8__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.
- {blizzardapi2-2.1.6/blizzardapi2.egg-info → blizzardapi2-2.1.8}/PKG-INFO +6 -6
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/README.md +2 -2
- blizzardapi2-2.1.8/blizzardapi2/_version.py +34 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/api.py +1 -1
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/battlenet/battlenet_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/battlenet/battlenet_oauth_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/diablo3/diablo3_community_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/diablo3/diablo3_game_data_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/hearthstone/hearthstone_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/starcraft2/starcraft2_community_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/wow/wow_game_data_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/wow/wow_profile_api.py +2 -2
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8/blizzardapi2.egg-info}/PKG-INFO +6 -6
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2.egg-info/requires.txt +3 -3
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/package.json +1 -1
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/pyproject.toml +4 -4
- blizzardapi2-2.1.6/blizzardapi2/_version.py +0 -21
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.github/dependabot.yml +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.github/workflows/black.yml +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.github/workflows/python-package.yml +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/.gitignore +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/CODE_OF_CONDUCT.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/CONTRIBUTING.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/LICENSE +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/SECURITY.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/battlenet/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/blizzard_api.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/diablo3/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/diablo3/diablo3_api.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/hearthstone/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/starcraft2/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/types.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/wow/__init__.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/wow/wow_api.py +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2.egg-info/SOURCES.txt +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2.egg-info/dependency_links.txt +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2.egg-info/top_level.txt +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/battlenet/README.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/diablo3/README.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/hearthstone/README.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/pull_request_template.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/starcraft2/README.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/docs/wow/README.md +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/poetry.lock +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/setup.cfg +0 -0
- {blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blizzardapi2
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.8
|
|
4
4
|
Summary: A Python wrapper for Blizzard API
|
|
5
5
|
Author-email: lostcol0ny <c098os0k@4wrd.cc>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -13,7 +13,7 @@ Requires-Python: >=3.11
|
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: requests<3.0.0,>=2.32.3
|
|
16
|
-
Requires-Dist: black<
|
|
16
|
+
Requires-Dist: black<26.0.0,>=24.4.2
|
|
17
17
|
Requires-Dist: pytest<9.0.0,>=8.2.2
|
|
18
18
|
Requires-Dist: pytest-mock<4.0.0,>=3.14.0
|
|
19
19
|
Requires-Dist: ruff<1.0.0,>=0.3.0
|
|
@@ -22,8 +22,8 @@ Requires-Dist: aiohttp>=3.12.12
|
|
|
22
22
|
Provides-Extra: dev
|
|
23
23
|
Requires-Dist: pytest<9.0.0,>=8.2.2; extra == "dev"
|
|
24
24
|
Requires-Dist: pytest-mock<4.0.0,>=3.14.0; extra == "dev"
|
|
25
|
-
Requires-Dist: pytest-asyncio<
|
|
26
|
-
Requires-Dist: black<
|
|
25
|
+
Requires-Dist: pytest-asyncio<2.0.0,>=0.23.5; extra == "dev"
|
|
26
|
+
Requires-Dist: black<26.0.0,>=24.4.2; extra == "dev"
|
|
27
27
|
Requires-Dist: ruff<1.0.0,>=0.3.0; extra == "dev"
|
|
28
28
|
Dynamic: license-file
|
|
29
29
|
|
|
@@ -79,7 +79,7 @@ Python (3.11+)
|
|
|
79
79
|
|
|
80
80
|
```python
|
|
81
81
|
from blizzardapi2 import BlizzardApi
|
|
82
|
-
from blizzardapi2.
|
|
82
|
+
from blizzardapi2.types import Locale, Region
|
|
83
83
|
|
|
84
84
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
85
85
|
|
|
@@ -109,7 +109,7 @@ connected_realms_index = api_client.wow.game_data.get_connected_realms_index(
|
|
|
109
109
|
```python
|
|
110
110
|
import asyncio
|
|
111
111
|
from blizzardapi2 import BlizzardApi
|
|
112
|
-
from blizzardapi2.
|
|
112
|
+
from blizzardapi2.types import Locale, Region
|
|
113
113
|
|
|
114
114
|
async def main():
|
|
115
115
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
@@ -50,7 +50,7 @@ Python (3.11+)
|
|
|
50
50
|
|
|
51
51
|
```python
|
|
52
52
|
from blizzardapi2 import BlizzardApi
|
|
53
|
-
from blizzardapi2.
|
|
53
|
+
from blizzardapi2.types import Locale, Region
|
|
54
54
|
|
|
55
55
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
56
56
|
|
|
@@ -80,7 +80,7 @@ connected_realms_index = api_client.wow.game_data.get_connected_realms_index(
|
|
|
80
80
|
```python
|
|
81
81
|
import asyncio
|
|
82
82
|
from blizzardapi2 import BlizzardApi
|
|
83
|
-
from blizzardapi2.
|
|
83
|
+
from blizzardapi2.types import Locale, Region
|
|
84
84
|
|
|
85
85
|
async def main():
|
|
86
86
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
TYPE_CHECKING = False
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from typing import Tuple
|
|
16
|
+
from typing import Union
|
|
17
|
+
|
|
18
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
20
|
+
else:
|
|
21
|
+
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
23
|
+
|
|
24
|
+
version: str
|
|
25
|
+
__version__: str
|
|
26
|
+
__version_tuple__: VERSION_TUPLE
|
|
27
|
+
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
30
|
+
|
|
31
|
+
__version__ = version = '2.0.8.dev22+g391ab832e'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 0, 8, 'dev22', 'g391ab832e')
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = 'g391ab832e'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
-
from .battlenet_oauth_api import
|
|
5
|
+
from .battlenet_oauth_api import BattlenetOAuthApi
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class BattlenetApi:
|
|
@@ -15,4 +15,4 @@ class BattlenetApi:
|
|
|
15
15
|
|
|
16
16
|
def __init__(self, client_id: str, client_secret: str) -> dict[str, Any]:
|
|
17
17
|
"""Init BattlenetApi."""
|
|
18
|
-
self.oauth =
|
|
18
|
+
self.oauth = BattlenetOAuthApi(client_id, client_secret)
|
|
@@ -6,8 +6,8 @@ including user information and authentication.
|
|
|
6
6
|
|
|
7
7
|
from typing import Any, Dict
|
|
8
8
|
|
|
9
|
-
from ..api import BaseApi
|
|
10
|
-
|
|
9
|
+
from ..api import BaseApi
|
|
10
|
+
from ..types import Locale, Region
|
|
11
11
|
|
|
12
12
|
class ApiResponse:
|
|
13
13
|
"""Wrapper for API responses with metadata."""
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Any
|
|
2
2
|
|
|
3
|
-
from ..api import
|
|
3
|
+
from ..api import BaseApi
|
|
4
4
|
|
|
5
5
|
"""diablo3_community_api.py file."""
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class Diablo3CommunityApi(
|
|
8
|
+
class Diablo3CommunityApi(BaseApi):
|
|
9
9
|
"""All Diablo 3 Community API methods.
|
|
10
10
|
|
|
11
11
|
Attributes:
|
|
@@ -6,8 +6,8 @@ including cards, card backs, and metadata.
|
|
|
6
6
|
|
|
7
7
|
from typing import Any, Dict
|
|
8
8
|
|
|
9
|
-
from ..api import BaseApi
|
|
10
|
-
|
|
9
|
+
from ..api import BaseApi
|
|
10
|
+
from ..types import Locale, Region
|
|
11
11
|
|
|
12
12
|
class ApiResponse:
|
|
13
13
|
"""Wrapper for API responses with metadata."""
|
{blizzardapi2-2.1.6 → blizzardapi2-2.1.8}/blizzardapi2/hearthstone/hearthstone_game_data_api.py
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Any
|
|
2
2
|
|
|
3
|
-
from ..api import
|
|
3
|
+
from ..api import BaseApi
|
|
4
4
|
|
|
5
5
|
"""hearthstone_game_data_api.py file."""
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class HearthstoneGameDataApi(
|
|
8
|
+
class HearthstoneGameDataApi(BaseApi):
|
|
9
9
|
"""All Hearthstone Game Data API methods.
|
|
10
10
|
|
|
11
11
|
Attributes:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blizzardapi2
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.8
|
|
4
4
|
Summary: A Python wrapper for Blizzard API
|
|
5
5
|
Author-email: lostcol0ny <c098os0k@4wrd.cc>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -13,7 +13,7 @@ Requires-Python: >=3.11
|
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: requests<3.0.0,>=2.32.3
|
|
16
|
-
Requires-Dist: black<
|
|
16
|
+
Requires-Dist: black<26.0.0,>=24.4.2
|
|
17
17
|
Requires-Dist: pytest<9.0.0,>=8.2.2
|
|
18
18
|
Requires-Dist: pytest-mock<4.0.0,>=3.14.0
|
|
19
19
|
Requires-Dist: ruff<1.0.0,>=0.3.0
|
|
@@ -22,8 +22,8 @@ Requires-Dist: aiohttp>=3.12.12
|
|
|
22
22
|
Provides-Extra: dev
|
|
23
23
|
Requires-Dist: pytest<9.0.0,>=8.2.2; extra == "dev"
|
|
24
24
|
Requires-Dist: pytest-mock<4.0.0,>=3.14.0; extra == "dev"
|
|
25
|
-
Requires-Dist: pytest-asyncio<
|
|
26
|
-
Requires-Dist: black<
|
|
25
|
+
Requires-Dist: pytest-asyncio<2.0.0,>=0.23.5; extra == "dev"
|
|
26
|
+
Requires-Dist: black<26.0.0,>=24.4.2; extra == "dev"
|
|
27
27
|
Requires-Dist: ruff<1.0.0,>=0.3.0; extra == "dev"
|
|
28
28
|
Dynamic: license-file
|
|
29
29
|
|
|
@@ -79,7 +79,7 @@ Python (3.11+)
|
|
|
79
79
|
|
|
80
80
|
```python
|
|
81
81
|
from blizzardapi2 import BlizzardApi
|
|
82
|
-
from blizzardapi2.
|
|
82
|
+
from blizzardapi2.types import Locale, Region
|
|
83
83
|
|
|
84
84
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
85
85
|
|
|
@@ -109,7 +109,7 @@ connected_realms_index = api_client.wow.game_data.get_connected_realms_index(
|
|
|
109
109
|
```python
|
|
110
110
|
import asyncio
|
|
111
111
|
from blizzardapi2 import BlizzardApi
|
|
112
|
-
from blizzardapi2.
|
|
112
|
+
from blizzardapi2.types import Locale, Region
|
|
113
113
|
|
|
114
114
|
async def main():
|
|
115
115
|
api_client = BlizzardApi("client_id", "client_secret")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
requests<3.0.0,>=2.32.3
|
|
2
|
-
black<
|
|
2
|
+
black<26.0.0,>=24.4.2
|
|
3
3
|
pytest<9.0.0,>=8.2.2
|
|
4
4
|
pytest-mock<4.0.0,>=3.14.0
|
|
5
5
|
ruff<1.0.0,>=0.3.0
|
|
@@ -9,6 +9,6 @@ aiohttp>=3.12.12
|
|
|
9
9
|
[dev]
|
|
10
10
|
pytest<9.0.0,>=8.2.2
|
|
11
11
|
pytest-mock<4.0.0,>=3.14.0
|
|
12
|
-
pytest-asyncio<
|
|
13
|
-
black<
|
|
12
|
+
pytest-asyncio<2.0.0,>=0.23.5
|
|
13
|
+
black<26.0.0,>=24.4.2
|
|
14
14
|
ruff<1.0.0,>=0.3.0
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "blizzardapi2"
|
|
3
|
-
version = "2.1.
|
|
3
|
+
version = "2.1.8"
|
|
4
4
|
description = "A Python wrapper for Blizzard API"
|
|
5
5
|
authors = [{ name = "lostcol0ny", email = "c098os0k@4wrd.cc" }]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"requests>=2.32.3,<3.0.0",
|
|
10
|
-
"black>=24.4.2,<
|
|
10
|
+
"black>=24.4.2,<26.0.0",
|
|
11
11
|
"pytest>=8.2.2,<9.0.0",
|
|
12
12
|
"pytest-mock>=3.14.0,<4.0.0",
|
|
13
13
|
"ruff>=0.3.0,<1.0.0",
|
|
@@ -38,8 +38,8 @@ local_scheme = "node-and-timestamp"
|
|
|
38
38
|
dev = [
|
|
39
39
|
"pytest>=8.2.2,<9.0.0",
|
|
40
40
|
"pytest-mock>=3.14.0,<4.0.0",
|
|
41
|
-
"pytest-asyncio>=0.23.5,<
|
|
42
|
-
"black>=24.4.2,<
|
|
41
|
+
"pytest-asyncio>=0.23.5,<2.0.0",
|
|
42
|
+
"black>=24.4.2,<26.0.0",
|
|
43
43
|
"ruff>=0.3.0,<1.0.0",
|
|
44
44
|
]
|
|
45
45
|
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# file generated by setuptools-scm
|
|
2
|
-
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
|
5
|
-
|
|
6
|
-
TYPE_CHECKING = False
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from typing import Tuple
|
|
9
|
-
from typing import Union
|
|
10
|
-
|
|
11
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
12
|
-
else:
|
|
13
|
-
VERSION_TUPLE = object
|
|
14
|
-
|
|
15
|
-
version: str
|
|
16
|
-
__version__: str
|
|
17
|
-
__version_tuple__: VERSION_TUPLE
|
|
18
|
-
version_tuple: VERSION_TUPLE
|
|
19
|
-
|
|
20
|
-
__version__ = version = '2.0.8.dev15+ge672c96'
|
|
21
|
-
__version_tuple__ = version_tuple = (2, 0, 8, 'dev15', 'ge672c96')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|