TornAPIWrapper 2.11.0__tar.gz → 2.12.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.11.0/src/TornAPIWrapper.egg-info → tornapiwrapper-2.12.0}/PKG-INFO +2 -2
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/README.md +1 -1
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/__init__.py +2 -2
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/market.py +11 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/user.py +23 -1
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/market.py +11 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/user.py +23 -1
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0/src/TornAPIWrapper.egg-info}/PKG-INFO +2 -2
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/LICENSE +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/pyproject.toml +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/setup.cfg +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/__main__.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/client.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/client_async.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/__init__.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/company.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/faction.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/forum.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/key.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/property.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/racing.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints/torn.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/__init__.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/company.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/faction.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/forum.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/key.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/property.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/racing.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/torn.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/errors.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/params/__init__.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/params/builders.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/params/map.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/text_response_endpoints.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/type_hints.py +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper.egg-info/SOURCES.txt +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper.egg-info/dependency_links.txt +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper.egg-info/requires.txt +0 -0
- {tornapiwrapper-2.11.0 → tornapiwrapper-2.12.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.12.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.08.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.08.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.12.0"
|
|
30
|
+
__patch__ = "06.08.2026"
|
|
31
31
|
|
|
32
32
|
from .errors import (
|
|
33
33
|
WrapperError,
|
|
@@ -112,6 +112,17 @@ class Market:
|
|
|
112
112
|
"""
|
|
113
113
|
return self.api.request("/market/properties", build_params(self.get_properties, locals()))
|
|
114
114
|
|
|
115
|
+
def get_pointsmarket(self, timestamp: int = None, comment: str = None) -> dict:
|
|
116
|
+
"""
|
|
117
|
+
Get points market listings.
|
|
118
|
+
API key (Public).
|
|
119
|
+
:param timestamp: Timestamp to bypass cache.
|
|
120
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
121
|
+
:return: API response data.
|
|
122
|
+
:rtype: dict
|
|
123
|
+
"""
|
|
124
|
+
return self.api.request("/market/pointsmarket", build_params(self.get_pointsmarket, locals()))
|
|
125
|
+
|
|
115
126
|
def get_rentals(self, property_type_id: int, limit: int = 20, offset: int = 0, sort: SortOptions = None, timestamp: int = None, comment: str = None) -> dict:
|
|
116
127
|
"""
|
|
117
128
|
Get properties rental listings.
|
|
@@ -554,6 +554,17 @@ class User:
|
|
|
554
554
|
"""
|
|
555
555
|
return self.api.request("/user/newevents", build_params(self.get_newevents, locals()))
|
|
556
556
|
|
|
557
|
+
def get_networth(self, timestamp: int = None, comment: str = None) -> dict:
|
|
558
|
+
"""
|
|
559
|
+
Get your networth.
|
|
560
|
+
API key (Limited).
|
|
561
|
+
:param timestamp: Timestamp to bypass cache.
|
|
562
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
563
|
+
:return: API response data.
|
|
564
|
+
:rtype: dict
|
|
565
|
+
"""
|
|
566
|
+
return self.api.request("/user/networth", build_params(self.get_networth, locals()))
|
|
567
|
+
|
|
557
568
|
def get_newmessages(self, timestamp: int = None, comment: str = None) -> dict:
|
|
558
569
|
"""
|
|
559
570
|
Get your unseen messages.
|
|
@@ -599,6 +610,17 @@ class User:
|
|
|
599
610
|
"""
|
|
600
611
|
return self.api.request("/user/organizedcrimes", build_params(self.get_organizedcrimes, locals()))
|
|
601
612
|
|
|
613
|
+
def get_perks(self, timestamp: int = None, comment: str = None) -> dict:
|
|
614
|
+
"""
|
|
615
|
+
Get your current perks.
|
|
616
|
+
API key (Minimal).
|
|
617
|
+
:param timestamp: Timestamp to bypass cache.
|
|
618
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
619
|
+
:return: API response data.
|
|
620
|
+
:rtype: dict
|
|
621
|
+
"""
|
|
622
|
+
return self.api.request("/user/perks", build_params(self.get_perks, locals()))
|
|
623
|
+
|
|
602
624
|
def get_personalstats(self, user_id: int = None, stat_category: UserPrsnlStatsCatOptions = None, stat_keys: list[UserPrsnlStatsStatOptions] = None, timestamp: int = None, comment: str = None) -> dict:
|
|
603
625
|
"""
|
|
604
626
|
Get your personal stats or for a specific user.
|
|
@@ -771,7 +793,7 @@ class User:
|
|
|
771
793
|
API key (Public).
|
|
772
794
|
Returns a CSV daily snapshot of active players.
|
|
773
795
|
This selection is standalone and cannot be used together with other selections.
|
|
774
|
-
CSV columns: id, name, gender,
|
|
796
|
+
CSV columns: id, name, gender, signed_up, level, rank, donator, faction, company, job, spouse, display_case, bazaar, fed, fed_reason, time_played, awards
|
|
775
797
|
:param timestamp: Timestamp to bypass cache or get the data in specific point in time.
|
|
776
798
|
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
777
799
|
:return: API response data.
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/market.py
RENAMED
|
@@ -112,6 +112,17 @@ class Market:
|
|
|
112
112
|
"""
|
|
113
113
|
return await self.api.request("/market/properties", build_params(self.get_properties, locals()))
|
|
114
114
|
|
|
115
|
+
async def get_pointsmarket(self, timestamp: int = None, comment: str = None) -> dict:
|
|
116
|
+
"""
|
|
117
|
+
Get points market listings.
|
|
118
|
+
API key (Public).
|
|
119
|
+
:param timestamp: Timestamp to bypass cache.
|
|
120
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
121
|
+
:return: API response data.
|
|
122
|
+
:rtype: dict
|
|
123
|
+
"""
|
|
124
|
+
return await self.api.request("/market/pointsmarket", build_params(self.get_pointsmarket, locals()))
|
|
125
|
+
|
|
115
126
|
async def get_rentals(self, property_type_id: int, limit: int = 20, offset: int = 0, sort: SortOptions = None, timestamp: int = None, comment: str = None) -> dict:
|
|
116
127
|
"""
|
|
117
128
|
Get properties rental listings.
|
|
@@ -554,6 +554,17 @@ class User:
|
|
|
554
554
|
"""
|
|
555
555
|
return await self.api.request("/user/newevents", build_params(self.get_newevents, locals()))
|
|
556
556
|
|
|
557
|
+
async def get_networth(self, timestamp: int = None, comment: str = None) -> dict:
|
|
558
|
+
"""
|
|
559
|
+
Get your networth.
|
|
560
|
+
API key (Limited).
|
|
561
|
+
:param timestamp: Timestamp to bypass cache.
|
|
562
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
563
|
+
:return: API response data.
|
|
564
|
+
:rtype: dict
|
|
565
|
+
"""
|
|
566
|
+
return await self.api.request("/user/networth", build_params(self.get_networth, locals()))
|
|
567
|
+
|
|
557
568
|
async def get_newmessages(self, timestamp: int = None, comment: str = None) -> dict:
|
|
558
569
|
"""
|
|
559
570
|
Get your unseen messages.
|
|
@@ -599,6 +610,17 @@ class User:
|
|
|
599
610
|
"""
|
|
600
611
|
return await self.api.request("/user/organizedcrimes", build_params(self.get_organizedcrimes, locals()))
|
|
601
612
|
|
|
613
|
+
async def get_perks(self, timestamp: int = None, comment: str = None) -> dict:
|
|
614
|
+
"""
|
|
615
|
+
Get your current perks.
|
|
616
|
+
API key (Minimal).
|
|
617
|
+
:param timestamp: Timestamp to bypass cache.
|
|
618
|
+
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
619
|
+
:return: API response data.
|
|
620
|
+
:rtype: dict
|
|
621
|
+
"""
|
|
622
|
+
return await self.api.request("/user/perks", build_params(self.get_perks, locals()))
|
|
623
|
+
|
|
602
624
|
async def get_personalstats(self, user_id: int = None, stat_category: UserPrsnlStatsCatOptions = None, stat_keys: list[UserPrsnlStatsStatOptions] = None, timestamp: int = None, comment: str = None) -> dict:
|
|
603
625
|
"""
|
|
604
626
|
Get your personal stats or for a specific user.
|
|
@@ -771,7 +793,7 @@ class User:
|
|
|
771
793
|
API key (Public).
|
|
772
794
|
Returns a CSV daily snapshot of active players.
|
|
773
795
|
This selection is standalone and cannot be used together with other selections.
|
|
774
|
-
CSV columns: id, name, gender,
|
|
796
|
+
CSV columns: id, name, gender, signed_up, level, rank, donator, faction, company, job, spouse, display_case, bazaar, fed, fed_reason, time_played, awards
|
|
775
797
|
:param timestamp: Timestamp to bypass cache or get the data in specific point in time.
|
|
776
798
|
:param comment: Comment for your tool/service/bot/website to be visible in the logs.
|
|
777
799
|
:return: API response data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: TornAPIWrapper
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.12.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.08.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
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/__init__.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/company.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/faction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/endpoints_async/property.py
RENAMED
|
File without changes
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.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
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper/text_response_endpoints.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tornapiwrapper-2.11.0 → tornapiwrapper-2.12.0}/src/TornAPIWrapper.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|