TornAPIWrapper 2.18.0__tar.gz → 2.20.0__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.
- {tornapiwrapper-2.18.0/src/TornAPIWrapper.egg-info → tornapiwrapper-2.20.0}/PKG-INFO +2 -2
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/README.md +1 -1
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/__init__.py +2 -2
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/user.py +11 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/user.py +11 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/type_hints.py +1 -1
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0/src/TornAPIWrapper.egg-info}/PKG-INFO +2 -2
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/LICENSE +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/pyproject.toml +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/setup.cfg +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/__main__.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/client.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/client_async.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/__init__.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/company.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/faction.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/forum.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/key.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/market.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/property.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/racing.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints/torn.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/__init__.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/company.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/faction.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/forum.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/key.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/market.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/property.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/racing.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/torn.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/errors.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/params/__init__.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/params/builders.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/params/map.py +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper.egg-info/SOURCES.txt +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper.egg-info/dependency_links.txt +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper.egg-info/requires.txt +0 -0
- {tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TornAPIWrapper
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.20.0
|
|
4
4
|
Summary: A Python wrapper for the Torn City API, providing access to Torn City data.
|
|
5
5
|
Author: cxdzc
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -53,7 +53,7 @@ Dynamic: license-file
|
|
|
53
53
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/v/tornapiwrapper?cacheSeconds=300></a>
|
|
54
54
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/pyversions/tornapiwrapper?cacheSeconds=300></a>
|
|
55
55
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pepy/dt/tornapiwrapper?color=blue&cacheSeconds=300></a>
|
|
56
|
-
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-
|
|
56
|
+
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-06.11.2026-c4c4c4?cacheSeconds=300></a>
|
|
57
57
|
<a rel="license" href="https://github.com/cxdzc/TornAPIWrapper/blob/main/LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-ab1436"/></a>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/v/tornapiwrapper?cacheSeconds=300></a>
|
|
7
7
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/pyversions/tornapiwrapper?cacheSeconds=300></a>
|
|
8
8
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pepy/dt/tornapiwrapper?color=blue&cacheSeconds=300></a>
|
|
9
|
-
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-
|
|
9
|
+
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-06.11.2026-c4c4c4?cacheSeconds=300></a>
|
|
10
10
|
<a rel="license" href="https://github.com/cxdzc/TornAPIWrapper/blob/main/LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-ab1436"/></a>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -26,8 +26,8 @@ __author__ = "cxdzc"
|
|
|
26
26
|
__copyright__ = "Copyright 2023-Present cxdzc"
|
|
27
27
|
__license__ = "MIT"
|
|
28
28
|
__title__ = "TornAPIWrapper"
|
|
29
|
-
__version__ = "2.
|
|
30
|
-
__patch__ = "
|
|
29
|
+
__version__ = "2.20.0"
|
|
30
|
+
__patch__ = "06.11.2026"
|
|
31
31
|
|
|
32
32
|
from .client import TornAPIWrapper
|
|
33
33
|
from .client_async import TornAPIWrapperAsync
|
|
@@ -894,6 +894,17 @@ class User:
|
|
|
894
894
|
"""
|
|
895
895
|
return self.api.request("/user/travel", build_params(self.get_travel, locals()))
|
|
896
896
|
|
|
897
|
+
def get_travelinventory(self, timestamp: int = None, comment: str = None) -> dict:
|
|
898
|
+
"""
|
|
899
|
+
Get your travel inventory capacity.
|
|
900
|
+
API key (Limited).
|
|
901
|
+
:param timestamp: Timestamp to bypass cache.
|
|
902
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
903
|
+
:return: API response data.
|
|
904
|
+
:rtype: dict
|
|
905
|
+
"""
|
|
906
|
+
return self.api.request("/user/travelinventory", build_params(self.get_travelinventory, locals()))
|
|
907
|
+
|
|
897
908
|
def get_virus(self, timestamp: int = None, comment: str = None) -> dict:
|
|
898
909
|
"""
|
|
899
910
|
Get your virus information.
|
|
@@ -894,6 +894,17 @@ class User:
|
|
|
894
894
|
"""
|
|
895
895
|
return await self.api.request("/user/travel", build_params(self.get_travel, locals()))
|
|
896
896
|
|
|
897
|
+
async def get_travelinventory(self, timestamp: int = None, comment: str = None) -> dict:
|
|
898
|
+
"""
|
|
899
|
+
Get your travel inventory capacity.
|
|
900
|
+
API key (Limited).
|
|
901
|
+
:param timestamp: Timestamp to bypass cache.
|
|
902
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
903
|
+
:return: API response data.
|
|
904
|
+
:rtype: dict
|
|
905
|
+
"""
|
|
906
|
+
return await self.api.request("/user/travelinventory", build_params(self.get_travelinventory, locals()))
|
|
907
|
+
|
|
897
908
|
async def get_virus(self, timestamp: int = None, comment: str = None) -> dict:
|
|
898
909
|
"""
|
|
899
910
|
Get your virus information.
|
|
@@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
25
25
|
from typing import Literal
|
|
26
26
|
|
|
27
27
|
SortOptions = Literal["DESC", "ASC"]
|
|
28
|
-
RaceCatOptions = Literal["official", "custom"]
|
|
28
|
+
RaceCatOptions = Literal["official", "custom", "available"]
|
|
29
29
|
AttackFiltersOptions = Literal["incoming", "outgoing", "idFilter"]
|
|
30
30
|
ReportCatOptions = Literal["mostwanted", "money", "stats", "references", "friendorfoe", "companyfinancials", "truelevel", "stockanalysis", "anonymousbounties", "investment"]
|
|
31
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TornAPIWrapper
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.20.0
|
|
4
4
|
Summary: A Python wrapper for the Torn City API, providing access to Torn City data.
|
|
5
5
|
Author: cxdzc
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -53,7 +53,7 @@ Dynamic: license-file
|
|
|
53
53
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/v/tornapiwrapper?cacheSeconds=300></a>
|
|
54
54
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pypi/pyversions/tornapiwrapper?cacheSeconds=300></a>
|
|
55
55
|
<a href="https://pypi.org/project/TornAPIWrapper/"><img src=https://img.shields.io/pepy/dt/tornapiwrapper?color=blue&cacheSeconds=300></a>
|
|
56
|
-
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-
|
|
56
|
+
<a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-06.11.2026-c4c4c4?cacheSeconds=300></a>
|
|
57
57
|
<a rel="license" href="https://github.com/cxdzc/TornAPIWrapper/blob/main/LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-ab1436"/></a>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
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
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/__init__.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/company.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/faction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/market.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/property.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper/endpoints_async/racing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tornapiwrapper-2.18.0 → tornapiwrapper-2.20.0}/src/TornAPIWrapper.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|