BlueMapWrapper

Back to README.md

Clients

Client

class BlueMapWrapper.Client

Synchronous Client for requesting, uses the requests library.

Slower than AsyncClient, more suitable for short and simple projects

Parameters

Methods


Parameters

base_url (str)

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]]


fetch_marker_collection()

Get a list of available maps from the API.

Parameters:


fetch_player_collection()

Get a list of all visible players from the API.

Parameters:

fetch_collection()

Get a lists of MarkerSets and visible players form the API. Offers faster performance due to threaded requesting

Parameters:



AsyncClient

class BlueMapWrapper.AsyncClient

Asynchronous Client for requesting, uses the aiohttp library.

Faster than Client, suitable for larger and more complex projects

Parameters

Methods


Parameters

base_url (str)

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]]


await fetch_marker_collection()

Get a list of available maps from the API.

Parameters:


await fetch_players_collection()

Get a list of all visible players from the API.

Parameters:


await fetch_collection()

Get a lists of MarkerSets and visible players form the API. Offers faster performance due to threaded requesting

Parameters: