foxapi 1.8.1__tar.gz → 1.9.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.
- {foxapi-1.8.1 → foxapi-1.9.0}/PKG-INFO +5 -19
- {foxapi-1.8.1 → foxapi-1.9.0}/README.md +2 -1
- foxapi-1.9.0/foxapi/Images/MapIcons/36.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/88.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/89.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/90.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/91.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/92.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/MapIconHomeBaseHallColonial.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapIcons/MapIconHomeBaseHallWarden.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/FoxholeFestivalMapHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapAcrithiaHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapAllodsBightHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapAshFieldsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapBasinSionnachHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapCallahansPassageHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapCallumsCapeHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapClahstraHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapClansheadValleyHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapDeadLandsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapDrownedValeHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapEndlessShoreHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapFarranacCoastHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapFishermansRowHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapGodcroftsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapGreatMarchHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapGutterHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapHeartlandsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapHomeRegionC.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapHomeRegionW.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapHowlCountyHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapKalokaiHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapKingsCageHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapKuuraStrandHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapLinnMercyHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapLochMorHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapLykosIsleHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapMarbanHollowHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapMooringCountyHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapMorgensCrossingHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapNevishLineHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapOarbreakerHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapOlavisWakeHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapOnyxHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapOriginHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapPalantineBermHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapPariPeakHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapPipersEnclaveHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapReachingTrailHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapReaversPassHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapRedRiverHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapSableportHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapShackledChasmHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapSpeakingWoodsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapStemaLandingHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapStlicanShelfHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapStonecradleHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapTempestIslandHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapTerminusHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapTheFingersHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapTyrantFoothillsHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapUmbralWildwoodHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapViperPitHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapWeatheredExpanseHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapWestgateHex.png +0 -0
- foxapi-1.9.0/foxapi/Images/MapsHex/MapWrestaHex.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/__init__.py +2 -2
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/utils.py +15 -3
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi.egg-info/PKG-INFO +5 -19
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi.egg-info/SOURCES.txt +21 -4
- {foxapi-1.8.1 → foxapi-1.9.0}/setup.py +2 -1
- foxapi-1.8.1/foxapi/Images/MapIcons/MapIconFortCursed.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapIcons/MapIconForwardBase1.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapAcrithiaHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapAllodsBightHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapAshFieldsHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapBasinSionnachHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapCallahansPassageHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapCallumsCapeHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapClahstraHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapClansheadValleyHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapDeadLandsHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapDrownedValeHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapEndlessShoreHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapFarranacCoastHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapFishermansRowHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapGodcroftsHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapGreatMarchHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapHeartlandsHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapHomeRegionC.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapHomeRegionW.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapHowlCountyHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapKalokaiHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapKingsCageHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapLinnMercyHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapLochMorHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapMarbanHollow.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapMooringCountyHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapMorgensCrossingHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapNevishLineHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapOarbreakerHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapOriginHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapReachingTrailHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapReaversPassHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapRedRiverHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapSableportHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapShackledChasmHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapSpeakingWoodsHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapStemaLandingHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapStlicanShelfHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapStonecradleHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapTempestIslandHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapTerminusHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapTheFingersHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapUmbralWildwoodHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapViperPitHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapWeatheredExpanseHex.png +0 -0
- foxapi-1.8.1/foxapi/Images/MapsHex/MapWestgateHex.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/LICENSE +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/10.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/11.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/12.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/13.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/14.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/15.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/16.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/17.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/18.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/19.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/20.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/21.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/22.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/23.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/27.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/28.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/29.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/30.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/32.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/33.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/34.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/35.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/37.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/38.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/39.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/40.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/41.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/45.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/46.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/47.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/5.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/51.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/52.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/53.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/54.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/56.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/57.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/58.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/59.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/6.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/60.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/61.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/62.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/7.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/70.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/71.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/72.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/75.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/8.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/83.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/84.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/9.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/DebugIcon.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/MapIconCivicCenter.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/MapIconScorchedTown.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/MapIconTownHall.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/Images/MapIcons/MapIconVictory.png +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi/foxapi.py +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi.egg-info/dependency_links.txt +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi.egg-info/requires.txt +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/foxapi.egg-info/top_level.txt +0 -0
- {foxapi-1.8.1 → foxapi-1.9.0}/setup.cfg +0 -0
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: foxapi
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
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
|
|
7
7
|
Author: ThePhoenix78
|
|
8
8
|
Author-email: thephoenix788@gmail.com
|
|
9
9
|
License: MIT
|
|
10
|
-
Keywords: foxhole,foxapi,foxhole-game,foxhole-api
|
|
10
|
+
Keywords: foxhole,foxapi,foxhole-game,foxhole-api,warapi
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
-
Requires-Dist: requests
|
|
17
|
-
Requires-Dist: pillow
|
|
18
|
-
Requires-Dist: aiohttp
|
|
19
|
-
Dynamic: author
|
|
20
|
-
Dynamic: author-email
|
|
21
|
-
Dynamic: classifier
|
|
22
|
-
Dynamic: description
|
|
23
|
-
Dynamic: description-content-type
|
|
24
|
-
Dynamic: download-url
|
|
25
|
-
Dynamic: home-page
|
|
26
|
-
Dynamic: keywords
|
|
27
|
-
Dynamic: license
|
|
28
|
-
Dynamic: license-file
|
|
29
|
-
Dynamic: requires-dist
|
|
30
|
-
Dynamic: summary
|
|
31
16
|
|
|
32
17
|
# FoxAPI Documentation
|
|
33
18
|
|
|
@@ -86,12 +71,13 @@ class FoxAPI(shard: str = "", image_dir: str = None, safe_mode: bool = True)
|
|
|
86
71
|
#### Note : all of theses methods are async, to run the synchronous version, add _sync at the end (see API example)
|
|
87
72
|
|
|
88
73
|
```py
|
|
89
|
-
get_data(endpoint: str, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
74
|
+
get_data(endpoint: str, session: aiohttp.ClientSession | None = None, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
90
75
|
```
|
|
91
76
|
Fetches data from the specified endpoint, you can choose to use cache instead of sending a request and you can pass ETag.
|
|
92
77
|
|
|
93
78
|
- Parameters:
|
|
94
79
|
- `endpoint` (str): The API endpoint to call.
|
|
80
|
+
- `session` (aiohttp.ClientSession, optional) the async session
|
|
95
81
|
- `etag` (str, optional): The ETag header for cache validation (not required since managed natively).
|
|
96
82
|
- `use_cache` (bool, optional): Whether to use cached data (default: False).
|
|
97
83
|
|
|
@@ -55,12 +55,13 @@ class FoxAPI(shard: str = "", image_dir: str = None, safe_mode: bool = True)
|
|
|
55
55
|
#### Note : all of theses methods are async, to run the synchronous version, add _sync at the end (see API example)
|
|
56
56
|
|
|
57
57
|
```py
|
|
58
|
-
get_data(endpoint: str, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
58
|
+
get_data(endpoint: str, session: aiohttp.ClientSession | None = None, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
59
59
|
```
|
|
60
60
|
Fetches data from the specified endpoint, you can choose to use cache instead of sending a request and you can pass ETag.
|
|
61
61
|
|
|
62
62
|
- Parameters:
|
|
63
63
|
- `endpoint` (str): The API endpoint to call.
|
|
64
|
+
- `session` (aiohttp.ClientSession, optional) the async session
|
|
64
65
|
- `etag` (str, optional): The ETag header for cache validation (not required since managed natively).
|
|
65
66
|
- `use_cache` (bool, optional): Whether to use cached data (default: False).
|
|
66
67
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from .foxapi import FoxAPI
|
|
2
|
-
from .utils import HexagonObject, FoxAPIError, HexagonError, EndpointError, APIResponse, Task
|
|
2
|
+
from .utils import HexagonObject, FoxAPIError, HexagonError, EndpointError, APIResponse, Task, _images_relations, _map_flags
|
|
3
3
|
|
|
4
4
|
import requests, json
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ __author__ = 'ThePhoenix78'
|
|
|
9
9
|
__license__ = 'MIT'
|
|
10
10
|
__copyright__ = 'Copyright 2024-2026 ThePhoenix78'
|
|
11
11
|
__url__ = 'https://github.com/ThePhoenix78/FoxAPI'
|
|
12
|
-
__newest__ = __version__ = '1.
|
|
12
|
+
__newest__ = __version__ = '1.9.0'
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
try:
|
|
@@ -55,7 +55,20 @@ _images_relations: dict = {
|
|
|
55
55
|
"72": "RocketSiteWithRocket",
|
|
56
56
|
"75": "FacilityMineOilRig",
|
|
57
57
|
"83": "WeatherStation",
|
|
58
|
-
"84": "MortarHouse"
|
|
58
|
+
"84": "MortarHouse",
|
|
59
|
+
"88": "AircraftDepot",
|
|
60
|
+
"89": "AircraftFactory",
|
|
61
|
+
"90": "AircraftRadar",
|
|
62
|
+
"91": "AircraftRunwayT1",
|
|
63
|
+
"92": "AircraftRunwayT2"
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_map_flags: dict = {
|
|
67
|
+
"0x01": "IsVictoryBase",
|
|
68
|
+
"0x02": "IsHomeBase",
|
|
69
|
+
"0x04": "IsBuildSite",
|
|
70
|
+
"0x10": "IsScorched",
|
|
71
|
+
"0x20": "IsTownClaimed"
|
|
59
72
|
}
|
|
60
73
|
|
|
61
74
|
class EndpointError(Exception):
|
|
@@ -95,7 +108,7 @@ class HexagonObject:
|
|
|
95
108
|
self.captured_towns: dict = captured_towns
|
|
96
109
|
self.casualty_rate: dict = casualty_rate
|
|
97
110
|
|
|
98
|
-
|
|
111
|
+
|
|
99
112
|
class FoxObject:
|
|
100
113
|
"""
|
|
101
114
|
Universal wrapper for any kind of dict item
|
|
@@ -140,4 +153,3 @@ class APIObject:
|
|
|
140
153
|
|
|
141
154
|
def items(self):
|
|
142
155
|
return self.json.__dict__.items()
|
|
143
|
-
'''
|
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: foxapi
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
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
|
|
7
7
|
Author: ThePhoenix78
|
|
8
8
|
Author-email: thephoenix788@gmail.com
|
|
9
9
|
License: MIT
|
|
10
|
-
Keywords: foxhole,foxapi,foxhole-game,foxhole-api
|
|
10
|
+
Keywords: foxhole,foxapi,foxhole-game,foxhole-api,warapi
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
-
Requires-Dist: requests
|
|
17
|
-
Requires-Dist: pillow
|
|
18
|
-
Requires-Dist: aiohttp
|
|
19
|
-
Dynamic: author
|
|
20
|
-
Dynamic: author-email
|
|
21
|
-
Dynamic: classifier
|
|
22
|
-
Dynamic: description
|
|
23
|
-
Dynamic: description-content-type
|
|
24
|
-
Dynamic: download-url
|
|
25
|
-
Dynamic: home-page
|
|
26
|
-
Dynamic: keywords
|
|
27
|
-
Dynamic: license
|
|
28
|
-
Dynamic: license-file
|
|
29
|
-
Dynamic: requires-dist
|
|
30
|
-
Dynamic: summary
|
|
31
16
|
|
|
32
17
|
# FoxAPI Documentation
|
|
33
18
|
|
|
@@ -86,12 +71,13 @@ class FoxAPI(shard: str = "", image_dir: str = None, safe_mode: bool = True)
|
|
|
86
71
|
#### Note : all of theses methods are async, to run the synchronous version, add _sync at the end (see API example)
|
|
87
72
|
|
|
88
73
|
```py
|
|
89
|
-
get_data(endpoint: str, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
74
|
+
get_data(endpoint: str, session: aiohttp.ClientSession | None = None, etag: str = None, use_cache: bool = False) -> APIResponse
|
|
90
75
|
```
|
|
91
76
|
Fetches data from the specified endpoint, you can choose to use cache instead of sending a request and you can pass ETag.
|
|
92
77
|
|
|
93
78
|
- Parameters:
|
|
94
79
|
- `endpoint` (str): The API endpoint to call.
|
|
80
|
+
- `session` (aiohttp.ClientSession, optional) the async session
|
|
95
81
|
- `etag` (str, optional): The ETag header for cache validation (not required since managed natively).
|
|
96
82
|
- `use_cache` (bool, optional): Whether to use cached data (default: False).
|
|
97
83
|
|
|
@@ -31,6 +31,7 @@ foxapi/Images/MapIcons/32.png
|
|
|
31
31
|
foxapi/Images/MapIcons/33.png
|
|
32
32
|
foxapi/Images/MapIcons/34.png
|
|
33
33
|
foxapi/Images/MapIcons/35.png
|
|
34
|
+
foxapi/Images/MapIcons/36.png
|
|
34
35
|
foxapi/Images/MapIcons/37.png
|
|
35
36
|
foxapi/Images/MapIcons/38.png
|
|
36
37
|
foxapi/Images/MapIcons/39.png
|
|
@@ -60,14 +61,20 @@ foxapi/Images/MapIcons/75.png
|
|
|
60
61
|
foxapi/Images/MapIcons/8.png
|
|
61
62
|
foxapi/Images/MapIcons/83.png
|
|
62
63
|
foxapi/Images/MapIcons/84.png
|
|
64
|
+
foxapi/Images/MapIcons/88.png
|
|
65
|
+
foxapi/Images/MapIcons/89.png
|
|
63
66
|
foxapi/Images/MapIcons/9.png
|
|
67
|
+
foxapi/Images/MapIcons/90.png
|
|
68
|
+
foxapi/Images/MapIcons/91.png
|
|
69
|
+
foxapi/Images/MapIcons/92.png
|
|
64
70
|
foxapi/Images/MapIcons/DebugIcon.png
|
|
65
71
|
foxapi/Images/MapIcons/MapIconCivicCenter.png
|
|
66
|
-
foxapi/Images/MapIcons/
|
|
67
|
-
foxapi/Images/MapIcons/
|
|
72
|
+
foxapi/Images/MapIcons/MapIconHomeBaseHallColonial.png
|
|
73
|
+
foxapi/Images/MapIcons/MapIconHomeBaseHallWarden.png
|
|
68
74
|
foxapi/Images/MapIcons/MapIconScorchedTown.png
|
|
69
75
|
foxapi/Images/MapIcons/MapIconTownHall.png
|
|
70
76
|
foxapi/Images/MapIcons/MapIconVictory.png
|
|
77
|
+
foxapi/Images/MapsHex/FoxholeFestivalMapHex.png
|
|
71
78
|
foxapi/Images/MapsHex/MapAcrithiaHex.png
|
|
72
79
|
foxapi/Images/MapsHex/MapAllodsBightHex.png
|
|
73
80
|
foxapi/Images/MapsHex/MapAshFieldsHex.png
|
|
@@ -83,20 +90,28 @@ foxapi/Images/MapsHex/MapFarranacCoastHex.png
|
|
|
83
90
|
foxapi/Images/MapsHex/MapFishermansRowHex.png
|
|
84
91
|
foxapi/Images/MapsHex/MapGodcroftsHex.png
|
|
85
92
|
foxapi/Images/MapsHex/MapGreatMarchHex.png
|
|
93
|
+
foxapi/Images/MapsHex/MapGutterHex.png
|
|
86
94
|
foxapi/Images/MapsHex/MapHeartlandsHex.png
|
|
87
95
|
foxapi/Images/MapsHex/MapHomeRegionC.png
|
|
88
96
|
foxapi/Images/MapsHex/MapHomeRegionW.png
|
|
89
97
|
foxapi/Images/MapsHex/MapHowlCountyHex.png
|
|
90
98
|
foxapi/Images/MapsHex/MapKalokaiHex.png
|
|
91
99
|
foxapi/Images/MapsHex/MapKingsCageHex.png
|
|
100
|
+
foxapi/Images/MapsHex/MapKuuraStrandHex.png
|
|
92
101
|
foxapi/Images/MapsHex/MapLinnMercyHex.png
|
|
93
102
|
foxapi/Images/MapsHex/MapLochMorHex.png
|
|
94
|
-
foxapi/Images/MapsHex/
|
|
103
|
+
foxapi/Images/MapsHex/MapLykosIsleHex.png
|
|
104
|
+
foxapi/Images/MapsHex/MapMarbanHollowHex.png
|
|
95
105
|
foxapi/Images/MapsHex/MapMooringCountyHex.png
|
|
96
106
|
foxapi/Images/MapsHex/MapMorgensCrossingHex.png
|
|
97
107
|
foxapi/Images/MapsHex/MapNevishLineHex.png
|
|
98
108
|
foxapi/Images/MapsHex/MapOarbreakerHex.png
|
|
109
|
+
foxapi/Images/MapsHex/MapOlavisWakeHex.png
|
|
110
|
+
foxapi/Images/MapsHex/MapOnyxHex.png
|
|
99
111
|
foxapi/Images/MapsHex/MapOriginHex.png
|
|
112
|
+
foxapi/Images/MapsHex/MapPalantineBermHex.png
|
|
113
|
+
foxapi/Images/MapsHex/MapPariPeakHex.png
|
|
114
|
+
foxapi/Images/MapsHex/MapPipersEnclaveHex.png
|
|
100
115
|
foxapi/Images/MapsHex/MapReachingTrailHex.png
|
|
101
116
|
foxapi/Images/MapsHex/MapReaversPassHex.png
|
|
102
117
|
foxapi/Images/MapsHex/MapRedRiverHex.png
|
|
@@ -109,7 +124,9 @@ foxapi/Images/MapsHex/MapStonecradleHex.png
|
|
|
109
124
|
foxapi/Images/MapsHex/MapTempestIslandHex.png
|
|
110
125
|
foxapi/Images/MapsHex/MapTerminusHex.png
|
|
111
126
|
foxapi/Images/MapsHex/MapTheFingersHex.png
|
|
127
|
+
foxapi/Images/MapsHex/MapTyrantFoothillsHex.png
|
|
112
128
|
foxapi/Images/MapsHex/MapUmbralWildwoodHex.png
|
|
113
129
|
foxapi/Images/MapsHex/MapViperPitHex.png
|
|
114
130
|
foxapi/Images/MapsHex/MapWeatheredExpanseHex.png
|
|
115
|
-
foxapi/Images/MapsHex/MapWestgateHex.png
|
|
131
|
+
foxapi/Images/MapsHex/MapWestgateHex.png
|
|
132
|
+
foxapi/Images/MapsHex/MapWrestaHex.png
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
|
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
|