TornAPIWrapper 2.12.0__tar.gz → 2.13.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.
Files changed (40) hide show
  1. {tornapiwrapper-2.12.0/src/TornAPIWrapper.egg-info → tornapiwrapper-2.13.0}/PKG-INFO +2 -2
  2. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/README.md +1 -1
  3. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/__init__.py +2 -2
  4. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/torn.py +11 -0
  5. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/user.py +16 -0
  6. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/torn.py +11 -0
  7. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/user.py +16 -0
  8. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/params/map.py +1 -1
  9. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0/src/TornAPIWrapper.egg-info}/PKG-INFO +2 -2
  10. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/LICENSE +0 -0
  11. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/pyproject.toml +0 -0
  12. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/setup.cfg +0 -0
  13. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/__main__.py +0 -0
  14. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/client.py +0 -0
  15. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/client_async.py +0 -0
  16. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/__init__.py +0 -0
  17. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/company.py +0 -0
  18. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/faction.py +0 -0
  19. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/forum.py +0 -0
  20. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/key.py +0 -0
  21. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/market.py +0 -0
  22. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/property.py +0 -0
  23. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints/racing.py +0 -0
  24. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/__init__.py +0 -0
  25. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/company.py +0 -0
  26. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/faction.py +0 -0
  27. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/forum.py +0 -0
  28. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/key.py +0 -0
  29. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/market.py +0 -0
  30. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/property.py +0 -0
  31. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/endpoints_async/racing.py +0 -0
  32. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/errors.py +0 -0
  33. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/params/__init__.py +0 -0
  34. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/params/builders.py +0 -0
  35. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/text_response_endpoints.py +0 -0
  36. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper/type_hints.py +0 -0
  37. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper.egg-info/SOURCES.txt +0 -0
  38. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper.egg-info/dependency_links.txt +0 -0
  39. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.0}/src/TornAPIWrapper.egg-info/requires.txt +0 -0
  40. {tornapiwrapper-2.12.0 → tornapiwrapper-2.13.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.12.0
3
+ Version: 2.13.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-06.08.2026-c4c4c4?cacheSeconds=300></a>
56
+ <a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-12.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-06.08.2026-c4c4c4?cacheSeconds=300></a>
9
+ <a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-12.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.12.0"
30
- __patch__ = "06.08.2026"
29
+ __version__ = "2.13.0"
30
+ __patch__ = "12.08.2026"
31
31
 
32
32
  from .errors import (
33
33
  WrapperError,
@@ -79,6 +79,17 @@ class Torn:
79
79
  """
80
80
  return self.api.request("/torn/calendar", build_params(self.get_calendar, locals()))
81
81
 
82
+ def get_companies(self, timestamp: int = None, comment: str = None) -> dict:
83
+ """
84
+ Get all companies details.
85
+ API key (Public).
86
+ :param timestamp: Timestamp to bypass cache.
87
+ :param comment: Comment for your tool/service/bot/website to be visible in the logs.
88
+ :return: API response data.
89
+ :rtype: dict
90
+ """
91
+ return self.api.request("/torn/companies", build_params(self.get_companies, locals()))
92
+
82
93
  def get_crimes(self, timestamp: int = None, comment: str = None) -> dict:
83
94
  """
84
95
  Get crimes information.
@@ -787,6 +787,22 @@ class User:
787
787
  """
788
788
  return self.api.request("/user/skills", build_params(self.get_skills, locals()))
789
789
 
790
+ def get_search(self, user_name: str = None, filters: list[str] = None, offset: int = 0, timestamp: int = None, comment: str = None) -> dict:
791
+ """
792
+ Search users by name or other criteria.
793
+ API key (Public).
794
+ This selection is standalone and cannot be used together with other selections.
795
+ It's always limited to return just 25 records.
796
+ :param user_name: The user's name you would like to search for.
797
+ :param filters: A filtering query parameter allowing a comma-separated list of filters.
798
+ :param offset: Number of rows to skip before returning results.
799
+ :param timestamp: Timestamp to bypass cache.
800
+ :param comment: Comment for your tool/service/bot/website to be visible in the logs.
801
+ :return: API response data.
802
+ :rtype: dict
803
+ """
804
+ return self.api.request("/user/search", build_params(self.get_search, locals()))
805
+
790
806
  def get_snapshot(self, timestamp: int = None, comment: str = None) -> str:
791
807
  """
792
808
  Get daily active players snapshot CSV.
@@ -79,6 +79,17 @@ class Torn:
79
79
  """
80
80
  return await self.api.request("/torn/calendar", build_params(self.get_calendar, locals()))
81
81
 
82
+ async def get_companies(self, timestamp: int = None, comment: str = None) -> dict:
83
+ """
84
+ Get all companies details.
85
+ API key (Public).
86
+ :param timestamp: Timestamp to bypass cache.
87
+ :param comment: Comment for your tool/service/bot/website to be visible in the logs.
88
+ :return: API response data.
89
+ :rtype: dict
90
+ """
91
+ return await self.api.request("/torn/companies", build_params(self.get_companies, locals()))
92
+
82
93
  async def get_crimes(self, timestamp: int = None, comment: str = None) -> dict:
83
94
  """
84
95
  Get crimes information.
@@ -787,6 +787,22 @@ class User:
787
787
  """
788
788
  return await self.api.request("/user/skills", build_params(self.get_skills, locals()))
789
789
 
790
+ async def get_search(self, user_name: str = None, filters: list[str] = None, offset: int = 0, timestamp: int = None, comment: str = None) -> dict:
791
+ """
792
+ Search users by name or other criteria.
793
+ API key (Public).
794
+ This selection is standalone and cannot be used together with other selections.
795
+ It's always limited to return just 25 records.
796
+ :param user_name: The user's name you would like to search for.
797
+ :param filters: A filtering query parameter allowing a comma-separated list of filters.
798
+ :param offset: Number of rows to skip before returning results.
799
+ :param timestamp: Timestamp to bypass cache.
800
+ :param comment: Comment for your tool/service/bot/website to be visible in the logs.
801
+ :return: API response data.
802
+ :rtype: dict
803
+ """
804
+ return await self.api.request("/user/search", build_params(self.get_search, locals()))
805
+
790
806
  async def get_snapshot(self, timestamp: int = None, comment: str = None) -> str:
791
807
  """
792
808
  Get daily active players snapshot CSV.
@@ -1,6 +1,6 @@
1
1
  param_from = {"from_"}
2
2
  param_target = {"target_id"}
3
- param_name = {"company_name", "faction_name"}
3
+ param_name = {"company_name", "faction_name", "user_name"}
4
4
  param_stat = {"stat_key", "stat_keys"}
5
5
  param_log = {"attack_log_id", "log_id"}
6
6
  param_ids = {"category_ids", "honor_ids", "item_ids", "medals_ids", "territory_ids"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TornAPIWrapper
3
- Version: 2.12.0
3
+ Version: 2.13.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-06.08.2026-c4c4c4?cacheSeconds=300></a>
56
+ <a href="https://www.torn.com/api.html#:~:text=Patch%20Notes"><img src=https://img.shields.io/badge/patch-12.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