foxapi 1.6.4__tar.gz → 1.6.5__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 (117) hide show
  1. {foxapi-1.6.4 → foxapi-1.6.5}/PKG-INFO +8 -7
  2. {foxapi-1.6.4 → foxapi-1.6.5}/README.md +7 -6
  3. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/foxapi.py +4 -4
  4. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi.egg-info/PKG-INFO +8 -7
  5. {foxapi-1.6.4 → foxapi-1.6.5}/setup.py +1 -1
  6. {foxapi-1.6.4 → foxapi-1.6.5}/LICENSE +0 -0
  7. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/10.png +0 -0
  8. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/11.png +0 -0
  9. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/12.png +0 -0
  10. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/13.png +0 -0
  11. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/14.png +0 -0
  12. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/15.png +0 -0
  13. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/16.png +0 -0
  14. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/17.png +0 -0
  15. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/18.png +0 -0
  16. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/19.png +0 -0
  17. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/20.png +0 -0
  18. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/21.png +0 -0
  19. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/22.png +0 -0
  20. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/23.png +0 -0
  21. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/27.png +0 -0
  22. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/28.png +0 -0
  23. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/29.png +0 -0
  24. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/30.png +0 -0
  25. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/32.png +0 -0
  26. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/33.png +0 -0
  27. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/34.png +0 -0
  28. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/35.png +0 -0
  29. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/37.png +0 -0
  30. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/38.png +0 -0
  31. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/39.png +0 -0
  32. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/40.png +0 -0
  33. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/41.png +0 -0
  34. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/45.png +0 -0
  35. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/46.png +0 -0
  36. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/47.png +0 -0
  37. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/5.png +0 -0
  38. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/51.png +0 -0
  39. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/52.png +0 -0
  40. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/53.png +0 -0
  41. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/54.png +0 -0
  42. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/56.png +0 -0
  43. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/57.png +0 -0
  44. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/58.png +0 -0
  45. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/59.png +0 -0
  46. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/6.png +0 -0
  47. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/60.png +0 -0
  48. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/61.png +0 -0
  49. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/62.png +0 -0
  50. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/7.png +0 -0
  51. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/70.png +0 -0
  52. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/71.png +0 -0
  53. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/72.png +0 -0
  54. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/75.png +0 -0
  55. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/8.png +0 -0
  56. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/83.png +0 -0
  57. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/84.png +0 -0
  58. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/9.png +0 -0
  59. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/DebugIcon.png +0 -0
  60. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconCivicCenter.png +0 -0
  61. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconFortCursed.png +0 -0
  62. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconForwardBase1.png +0 -0
  63. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconScorchedTown.png +0 -0
  64. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconTownHall.png +0 -0
  65. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapIcons/MapIconVictory.png +0 -0
  66. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapAcrithiaHex.png +0 -0
  67. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapAllodsBightHex.png +0 -0
  68. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapAshFieldsHex.png +0 -0
  69. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapBasinSionnachHex.png +0 -0
  70. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapCallahansPassageHex.png +0 -0
  71. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapCallumsCapeHex.png +0 -0
  72. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapClahstraHex.png +0 -0
  73. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapClansheadValleyHex.png +0 -0
  74. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapDeadLandsHex.png +0 -0
  75. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapDrownedValeHex.png +0 -0
  76. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapEndlessShoreHex.png +0 -0
  77. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapFarranacCoastHex.png +0 -0
  78. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapFishermansRowHex.png +0 -0
  79. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapGodcroftsHex.png +0 -0
  80. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapGreatMarchHex.png +0 -0
  81. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapHeartlandsHex.png +0 -0
  82. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapHomeRegionC.png +0 -0
  83. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapHomeRegionW.png +0 -0
  84. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapHowlCountyHex.png +0 -0
  85. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapKalokaiHex.png +0 -0
  86. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapKingsCageHex.png +0 -0
  87. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapLinnMercyHex.png +0 -0
  88. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapLochMorHex.png +0 -0
  89. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapMarbanHollow.png +0 -0
  90. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapMooringCountyHex.png +0 -0
  91. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapMorgensCrossingHex.png +0 -0
  92. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapNevishLineHex.png +0 -0
  93. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapOarbreakerHex.png +0 -0
  94. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapOriginHex.png +0 -0
  95. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapReachingTrailHex.png +0 -0
  96. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapReaversPassHex.png +0 -0
  97. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapRedRiverHex.png +0 -0
  98. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapSableportHex.png +0 -0
  99. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapShackledChasmHex.png +0 -0
  100. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapSpeakingWoodsHex.png +0 -0
  101. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapStemaLandingHex.png +0 -0
  102. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapStlicanShelfHex.png +0 -0
  103. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapStonecradleHex.png +0 -0
  104. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapTempestIslandHex.png +0 -0
  105. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapTerminusHex.png +0 -0
  106. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapTheFingersHex.png +0 -0
  107. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapUmbralWildwoodHex.png +0 -0
  108. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapViperPitHex.png +0 -0
  109. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapWeatheredExpanseHex.png +0 -0
  110. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/Images/MapsHex/MapWestgateHex.png +0 -0
  111. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/__init__.py +0 -0
  112. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi/utils.py +0 -0
  113. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi.egg-info/SOURCES.txt +0 -0
  114. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi.egg-info/dependency_links.txt +0 -0
  115. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi.egg-info/requires.txt +0 -0
  116. {foxapi-1.6.4 → foxapi-1.6.5}/foxapi.egg-info/top_level.txt +0 -0
  117. {foxapi-1.6.4 → foxapi-1.6.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foxapi
3
- Version: 1.6.4
3
+ Version: 1.6.5
4
4
  Summary: A wrapper for the foxhole API
5
5
  Home-page: https://github.com/ThePhoenix78/FoxAPI
6
6
  Download-URL: https://github.com/ThePhoenix78/FoxAPI/tarball/master
@@ -63,12 +63,13 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
63
63
  - [Error Handling](#error-handling)
64
64
  - [Objects](#objects)
65
65
  - [Example Usage](#example-usage)
66
- - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
66
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
67
+
67
68
 
68
69
  ## Dependencies
69
70
 
70
71
  ```bash
71
- pip install pillow requests
72
+ pip install pillow requests aiohttp
72
73
  ```
73
74
 
74
75
  ## Wrapper
@@ -212,9 +213,9 @@ asyncio.run(main())
212
213
 
213
214
  ## Error Handling
214
215
 
215
- ```pyEndpointError```: Raised if an invalid API endpoint is used.
216
- ```pyHexagonError```: Raised if an invalid hexagon is provided.
217
- ```pyFoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
216
+ ```EndpointError```: Raised if an invalid API endpoint is used.
217
+ ```HexagonError```: Raised if an invalid hexagon is provided.
218
+ ```FoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
218
219
 
219
220
 
220
221
  ## Objects
@@ -317,4 +318,4 @@ async def on_update(hexa: HexagonObject):
317
318
 
318
319
  ```
319
320
 
320
- #### I am not responsible for what you are doing with it
321
+ ### I am not responsible for what you are doing with it
@@ -32,12 +32,13 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
32
32
  - [Error Handling](#error-handling)
33
33
  - [Objects](#objects)
34
34
  - [Example Usage](#example-usage)
35
- - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
35
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
36
+
36
37
 
37
38
  ## Dependencies
38
39
 
39
40
  ```bash
40
- pip install pillow requests
41
+ pip install pillow requests aiohttp
41
42
  ```
42
43
 
43
44
  ## Wrapper
@@ -181,9 +182,9 @@ asyncio.run(main())
181
182
 
182
183
  ## Error Handling
183
184
 
184
- ```pyEndpointError```: Raised if an invalid API endpoint is used.
185
- ```pyHexagonError```: Raised if an invalid hexagon is provided.
186
- ```pyFoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
185
+ ```EndpointError```: Raised if an invalid API endpoint is used.
186
+ ```HexagonError```: Raised if an invalid hexagon is provided.
187
+ ```FoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
187
188
 
188
189
 
189
190
  ## Objects
@@ -286,4 +287,4 @@ async def on_update(hexa: HexagonObject):
286
287
 
287
288
  ```
288
289
 
289
- #### I am not responsible for what you are doing with it
290
+ ### I am not responsible for what you are doing with it
@@ -247,9 +247,9 @@ class FoxAPI():
247
247
  for y in range(height):
248
248
  p = pix[x, y]
249
249
 
250
- if p[-1] >= 10:
250
+ if p[-1] <= 10:
251
251
  continue
252
-
252
+
253
253
  new_color: tuple = (p[0]-g + color[0], p[1]-g + color[1], p[2]-g + color[2])
254
254
  image.putpixel((x, y), new_color)
255
255
 
@@ -302,9 +302,9 @@ class FoxAPI():
302
302
  try:
303
303
  img_path: str = os.path.join(self._img_dir, "MapIcons", f"{icon}.png")
304
304
  img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
305
- self.color_icon(img2, team=team)
305
+ self.color_icon(image=img2, team=team)
306
306
 
307
- except Exception:
307
+ except Exception as e:
308
308
  img_path: str = os.path.join(self._img_dir, "MapIcons", f"DebugIcon.png")
309
309
  img2 = Image.open(img_path).convert("RGBA").resize(icon_size)
310
310
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foxapi
3
- Version: 1.6.4
3
+ Version: 1.6.5
4
4
  Summary: A wrapper for the foxhole API
5
5
  Home-page: https://github.com/ThePhoenix78/FoxAPI
6
6
  Download-URL: https://github.com/ThePhoenix78/FoxAPI/tarball/master
@@ -63,12 +63,13 @@ Also, if you work with discord.py or any asynchronous API, this tool might be us
63
63
  - [Error Handling](#error-handling)
64
64
  - [Objects](#objects)
65
65
  - [Example Usage](#example-usage)
66
- - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
66
+ - [I am not responsible for what you are doing with it](#i-am-not-responsible-for-what-you-are-doing-with-it)
67
+
67
68
 
68
69
  ## Dependencies
69
70
 
70
71
  ```bash
71
- pip install pillow requests
72
+ pip install pillow requests aiohttp
72
73
  ```
73
74
 
74
75
  ## Wrapper
@@ -212,9 +213,9 @@ asyncio.run(main())
212
213
 
213
214
  ## Error Handling
214
215
 
215
- ```pyEndpointError```: Raised if an invalid API endpoint is used.
216
- ```pyHexagonError```: Raised if an invalid hexagon is provided.
217
- ```pyFoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
216
+ ```EndpointError```: Raised if an invalid API endpoint is used.
217
+ ```HexagonError```: Raised if an invalid hexagon is provided.
218
+ ```FoxAPIError```: A general error for issues within the FoxAPI class (e.g., missing data).
218
219
 
219
220
 
220
221
  ## Objects
@@ -317,4 +318,4 @@ async def on_update(hexa: HexagonObject):
317
318
 
318
319
  ```
319
320
 
320
- #### I am not responsible for what you are doing with it
321
+ ### I am not responsible for what you are doing with it
@@ -6,7 +6,7 @@ with open("README.md", "r") as stream:
6
6
 
7
7
  setup(
8
8
  name='foxapi',
9
- version="1.6.4",
9
+ version="1.6.5",
10
10
  url='https://github.com/ThePhoenix78/FoxAPI',
11
11
  download_url='https://github.com/ThePhoenix78/FoxAPI/tarball/master',
12
12
  license='MIT',
File without changes
File without changes
File without changes
File without changes