A BlueMap Wrapper to get data from a BlueMap Map
Project description
BlueMapWrapper
An open-sourced API wrapper for BlueMap for Python!!
This wrapper is used for getting information from existing Blue Maps, NOT to create one.
Installation
Windows
pip install bluemap_wrapper
Linux
python -m pip install bluemap_wrapper
Quick Example
import asyncio
from BlueMapWrapper import AsyncClient, KEYS
async def main():
# printing out all players and lands plugin markers
# Setting up Async Client, AsyncClient Object
client = AsyncClient(base_url='http://map.eldrath.com:20098')
# Fetching player and marker Collection from map, Collection Object
collection = await client.fetch_collection('world')
for player in collection.player_collection: # Iterate through all players
print(f"Player: {player.name}\nPosition: {player.position}")
# Getting MarkerCollection Object from Collection
marker_collection = collection.marker_collection
# Getting Marker for Lands Plugin
lands = marker_collection.from_key(KEYS.LANDS)
for marker in lands: # Iterate though markers in lands
print(f"Name: {marker.label}\nPosition: {marker.position}")
await client.close() # Close client after use
if __name__ == '__main__':
asyncio.run(main())
Documentation Contents
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bluemapwrapper-1.0.2.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluemapwrapper-1.0.2.tar.gz.
File metadata
- Download URL: bluemapwrapper-1.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c0844e8ad3099e36b1f954728892a3f18629cc4e8a86daebaf656f8752f266
|
|
| MD5 |
eabf89ca2f20ef9dbb1735965bb07360
|
|
| BLAKE2b-256 |
5337fefadaae07a88c16ea1f07e7fffd11ad2e892ec2ca5e04bda2dc5bcff6a7
|
File details
Details for the file bluemapwrapper-1.0.2-py3-none-any.whl.
File metadata
- Download URL: bluemapwrapper-1.0.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
958e6ec6971a3ae6f57f0ada2d74a0d2aee7ab903217747261bffb49b87fce65
|
|
| MD5 |
e3441b00fd5ce71afdda2390c5d4fdbb
|
|
| BLAKE2b-256 |
f591ea48be182e9808534f56e64eca6dbf126158884a51ae17af53f02052e1d8
|