class BlueMapWrapper.Client
Synchronous Client for requesting, uses the requests library.
Slower than AsyncClient, more suitable for short and simple projects
Parameters
The base url of the Blue Map
Methods
fetch_maps()
Get a list of available maps from the API.
Returns:
A list of strings of available maps
Return Type:
List[Union[Text, None]]
Get a list of available maps from the API.
MarkerCollection Object with all available marker collections
Get a list of all visible players from the API.
PlayerCollection Object with all available players
Get a lists of MarkerSets and visible players form the API. Offers faster performance due to threaded requesting
Collection Object with a MarkerCollection and PlayerCollection Object
class BlueMapWrapper.AsyncClient
Asynchronous Client for requesting, uses the aiohttp library.
Faster than Client, suitable for larger and more complex projects
Parameters
The base url of the Blue Map
Methods
await fetch_maps()
Get a list of available maps from the API.
Returns:
A list of strings of available maps
Return Type:
List[Union[Text, None]]
Get a list of available maps from the API.
MarkerCollection Object with all available marker collections
Get a list of all visible players from the API.
PlayerCollection Object with all available players
Get a lists of MarkerSets and visible players form the API. Offers faster performance due to threaded requesting
Collection Object with a MarkerCollection and PlayerCollection Object